From 298b525951ea4ce7a78364e835f45a549b7f865e Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Thu, 4 Dec 2014 07:57:13 -0800 Subject: [PATCH] core: fix a doctest --- src/libcore/result.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; ///