From 6c29f91a760ef18882fff4f7a9f72cfed13fad86 Mon Sep 17 00:00:00 2001 From: passchaos Date: Sat, 16 Jul 2016 22:41:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E5=BA=94=E8=AF=A5=E5=86=8D=E5=8A=A0?= =?UTF-8?q?=E4=B8=8A&mut=EF=BC=8C=E5=B7=B2=E7=BB=8F=E6=98=AF=E5=8F=AF?= =?UTF-8?q?=E5=8F=98=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- io/io.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/io.md b/io/io.md index 4cf780f..f80df15 100644 --- a/io/io.md +++ b/io/io.md @@ -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(()) } ```