Skip to content

Commit a4246b8

Browse files
committed
Add get_line confusable to Stdin::read_line()
1 parent ad9c494 commit a4246b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/std/src/io/stdio.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ impl Stdin {
394394
/// in which case it will wait for the Enter key to be pressed before
395395
/// continuing
396396
#[stable(feature = "rust1", since = "1.0.0")]
397+
#[rustc_confusables("get_line")]
397398
pub fn read_line(&self, buf: &mut String) -> io::Result<usize> {
398399
self.lock().read_line(buf)
399400
}

0 commit comments

Comments
 (0)