We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ff263c8 + 6c29f91 commit 3d4426aCopy full SHA for 3d4426a
1 file changed
io/io.md
@@ -26,7 +26,7 @@ Read 由于每调用一次 `read` 方法都会调用一次系统API与内核交
26
use std::io;
27
28
fn read_from_stdin(buf: &mut String) -> io::Result<()> {
29
- try!(io::stdin().read_line(&mut buf));
+ try!(io::stdin().read_line(buf));
30
Ok(())
31
}
32
```
0 commit comments