about summary refs log tree commit diff
path: root/src/libstd/io/stdio.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-07-31 01:21:23 +0000
committerbors <bors@rust-lang.org>2015-07-31 01:21:23 +0000
commitdc966ef95cf9c428b29e1346e54768f7411466c8 (patch)
tree962be711bc028969215a3fe2ce32c184422286ee /src/libstd/io/stdio.rs
parent4dfe7a16cd8dff6bef0eea989ae98f4e9d8910fc (diff)
parent24f21f22c10031a55c9b17f05782b57ccad62433 (diff)
downloadrust-dc966ef95cf9c428b29e1346e54768f7411466c8.tar.gz
rust-dc966ef95cf9c428b29e1346e54768f7411466c8.zip
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...
Diffstat (limited to 'src/libstd/io/stdio.rs')
-rw-r--r--src/libstd/io/stdio.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/io/stdio.rs b/src/libstd/io/stdio.rs
index d8b7c8a282c..d69e17cade4 100644
--- a/src/libstd/io/stdio.rs
+++ b/src/libstd/io/stdio.rs
@@ -255,7 +255,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<usize> {
+    pub fn read_line(&self, buf: &mut String) -> io::Result<usize> {
         self.lock().read_line(buf)
     }
 }