diff options
| author | Jaken Herman <JakenHerman7@Gmail.com> | 2024-10-02 00:24:42 -0500 |
|---|---|---|
| committer | Jaken Herman <JakenHerman7@Gmail.com> | 2024-10-02 23:19:26 -0500 |
| commit | 4b48d72eaa7f4d934f56bcf2b6d0348954977823 (patch) | |
| tree | e5a83ec40ab9713291715dbabcff792679ac858d /library/std/src/io/stdio.rs | |
| parent | ad9c494835e746fb7c8a26eeed0ad90e4e834058 (diff) | |
| download | rust-4b48d72eaa7f4d934f56bcf2b6d0348954977823.tar.gz rust-4b48d72eaa7f4d934f56bcf2b6d0348954977823.zip | |
Add `get_line` confusable to `Stdin::read_line()`
Add tests for addition of `#[rustc_confusables("get_line")]`
Diffstat (limited to 'library/std/src/io/stdio.rs')
| -rw-r--r-- | library/std/src/io/stdio.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/io/stdio.rs b/library/std/src/io/stdio.rs index 6de069a518e..bf242e715bd 100644 --- a/library/std/src/io/stdio.rs +++ b/library/std/src/io/stdio.rs @@ -394,6 +394,7 @@ impl Stdin { /// in which case it will wait for the Enter key to be pressed before /// continuing #[stable(feature = "rust1", since = "1.0.0")] + #[rustc_confusables("get_line")] pub fn read_line(&self, buf: &mut String) -> io::Result<usize> { self.lock().read_line(buf) } |
