Skip to content

Commit 298b525

Browse files
committedDec 4, 2014
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‎

Lines changed: 2 additions & 2 deletions
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
///

5 commit comments

Comments
 (5)

bors commented on Dec 4, 2014

@bors
Collaborator

saw approval from erickt
at erickt@298b525

bors commented on Dec 4, 2014

@bors
Collaborator

merging erickt/rust/reader = 298b525 into auto

bors commented on Dec 4, 2014

@bors
Collaborator

erickt/rust/reader = 298b525 merged ok, testing candidate = d9c7c00

bors commented on Dec 4, 2014

@bors
Collaborator

fast-forwarding master to auto = d9c7c00

Please sign in to comment.