Skip to content

Commit

Permalink
Rollup merge of rust-lang#33442 - tshepang:trim, r=steveklabnik
Browse files Browse the repository at this point in the history
doc: trim some needless code
  • Loading branch information
GuillaumeGomez committed May 7, 2016
2 parents cdbf864 + 9f935c8 commit f440176
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/libstd/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,10 @@
//!
//! # fn foo() -> io::Result<()> {
//! let f = try!(File::open("foo.txt"));
//! let mut reader = BufReader::new(f);
//! let reader = BufReader::new(f);
//!
//! for line in reader.lines() {
//! let line = try!(line);
//! println!("{}", line);
//! println!("{}", try!(line));
//! }
//!
//! # Ok(())
Expand Down

0 comments on commit f440176

Please sign in to comment.