diff --git a/src/libcore/result.rs b/src/libcore/result.rs index 2368739a66f..7626b4eed76 100644 --- a/src/libcore/result.rs +++ b/src/libcore/result.rs @@ -444,9 +444,9 @@ pub fn as_mut_slice<'r>(&'r mut self) -> &'r mut [T] { /// ignoring I/O and parse errors: /// /// ``` - /// use std::io::{BufReader, IoResult}; + /// use std::io::IoResult; /// - /// let mut buffer = "1\n2\n3\n4\n"; + /// let mut buffer = &mut b"1\n2\n3\n4\n"; /// /// let mut sum = 0; ///