Skip to content

Commit

Permalink
Merge pull request #513 from passchaos/master
Browse files Browse the repository at this point in the history
不应该再加上&mut,已经是可变引用
  • Loading branch information
MarisaKirisame authored Jul 17, 2016
2 parents ff263c8 + 6c29f91 commit 3d4426a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io/io.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Read 由于每调用一次 `read` 方法都会调用一次系统API与内核交
use std::io;

fn read_from_stdin(buf: &mut String) -> io::Result<()> {
try!(io::stdin().read_line(&mut buf));
try!(io::stdin().read_line(buf));
Ok(())
}
```
Expand Down

0 comments on commit 3d4426a

Please sign in to comment.