We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50df2a0 commit 24f21f2Copy full SHA for 24f21f2
src/libstd/io/stdio.rs
@@ -227,7 +227,7 @@ impl Stdin {
227
// in which case it will wait for the Enter key to be pressed before
228
/// continuing
229
#[stable(feature = "rust1", since = "1.0.0")]
230
- pub fn read_line(&mut self, buf: &mut String) -> io::Result<usize> {
+ pub fn read_line(&self, buf: &mut String) -> io::Result<usize> {
231
self.lock().read_line(buf)
232
}
233
0 commit comments