Skip to content

Commit dc966ef

Browse files
committed
Auto merge of #26897 - RalfJung:stdin-mut, r=alexcrichton
This fixes #26890. To be honest, the local compile-test is still running. This just takes so long. But this looks trivial enough...
2 parents 4dfe7a1 + 24f21f2 commit dc966ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/io/stdio.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ impl Stdin {
255255
// in which case it will wait for the Enter key to be pressed before
256256
/// continuing
257257
#[stable(feature = "rust1", since = "1.0.0")]
258-
pub fn read_line(&mut self, buf: &mut String) -> io::Result<usize> {
258+
pub fn read_line(&self, buf: &mut String) -> io::Result<usize> {
259259
self.lock().read_line(buf)
260260
}
261261
}

0 commit comments

Comments
 (0)