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.
2 parents 4dfe7a1 + 24f21f2 commit dc966efCopy full SHA for dc966ef
src/libstd/io/stdio.rs
@@ -255,7 +255,7 @@ impl Stdin {
255
// in which case it will wait for the Enter key to be pressed before
256
/// continuing
257
#[stable(feature = "rust1", since = "1.0.0")]
258
- pub fn read_line(&mut self, buf: &mut String) -> io::Result<usize> {
+ pub fn read_line(&self, buf: &mut String) -> io::Result<usize> {
259
self.lock().read_line(buf)
260
}
261
0 commit comments