Skip to content

Commit 298b525

Browse files
committed
core: fix a doctest
1 parent 0d24780 commit 298b525

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/result.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -444,9 +444,9 @@ impl<T, E> Result<T, E> {
444444
/// ignoring I/O and parse errors:
445445
///
446446
/// ```
447-
/// use std::io::{BufReader, IoResult};
447+
/// use std::io::IoResult;
448448
///
449-
/// let mut buffer = "1\n2\n3\n4\n";
449+
/// let mut buffer = &mut b"1\n2\n3\n4\n";
450450
///
451451
/// let mut sum = 0;
452452
///

0 commit comments

Comments
 (0)