Skip to content

Commit

Permalink
Add get_line confusable to Stdin::read_line()
Browse files Browse the repository at this point in the history
Add tests for addition of `#[rustc_confusables("get_line")]`
  • Loading branch information
JakenHerman committed Oct 3, 2024
1 parent 2b4f6ec commit 254af0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions std/src/io/stdio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 254af0b

Please sign in to comment.