diff --git a/src/libstd/io/stdio.rs b/src/libstd/io/stdio.rs index 2a64d0f6e8c19..dc82377f2af8c 100644 --- a/src/libstd/io/stdio.rs +++ b/src/libstd/io/stdio.rs @@ -227,7 +227,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")] - pub fn read_line(&mut self, buf: &mut String) -> io::Result { + pub fn read_line(&self, buf: &mut String) -> io::Result { self.lock().read_line(buf) } }