Skip to content

Commit 254af0b

Browse files
committed
Add get_line confusable to Stdin::read_line()
Add tests for addition of `#[rustc_confusables("get_line")]`
1 parent 2b4f6ec commit 254af0b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

std/src/io/stdio.rs

+1
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)