Skip to content

Commit

Permalink
Examples: Set a good one.
Browse files Browse the repository at this point in the history
  • Loading branch information
Freaky committed Apr 20, 2018
1 parent 84913f4 commit fb9f50a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl<R: io::Read> LineReader<R> {
/// # use std::fs::File;
/// # use std::io;
/// # fn x() -> io::Result<()> {
/// let reader = LineReader::new(File::open("myfile.txt").unwrap());
/// let reader = LineReader::new(File::open("myfile.txt")?);
/// # Ok(())
/// # }
/// ```
Expand All @@ -61,7 +61,7 @@ impl<R: io::Read> LineReader<R> {
/// # use std::fs::File;
/// # use std::io;
/// # fn x() -> io::Result<()> {
/// let mut reader = LineReader::with_capacity(1024*64, File::open("myfile.txt").unwrap());
/// let mut reader = LineReader::with_capacity(1024*64, File::open("myfile.txt")?);
/// # Ok(())
/// # }
/// ```
Expand All @@ -77,7 +77,7 @@ impl<R: io::Read> LineReader<R> {
/// # use std::fs::File;
/// # use std::io;
/// # fn x() -> io::Result<()> {
/// let mut reader = LineReader::with_delimiter(b'\t', File::open("myfile.txt").unwrap());
/// let mut reader = LineReader::with_delimiter(b'\t', File::open("myfile.txt")?);
/// # Ok(())
/// # }
/// ```
Expand Down

0 comments on commit fb9f50a

Please sign in to comment.