core: fix a doctest

This commit is contained in:
Erick Tryzelaar 2014-12-04 07:57:13 -08:00
parent 0d24780793
commit 298b525951

View File

@ -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;
///