core: fix a doctest
This commit is contained in:
parent
0d24780793
commit
298b525951
@ -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;
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user