Skip to content

Commit f440176

Browse files
Rollup merge of #33442 - tshepang:trim, r=steveklabnik
doc: trim some needless code
2 parents cdbf864 + 9f935c8 commit f440176

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/libstd/io/mod.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,10 @@
182182
//!
183183
//! # fn foo() -> io::Result<()> {
184184
//! let f = try!(File::open("foo.txt"));
185-
//! let mut reader = BufReader::new(f);
185+
//! let reader = BufReader::new(f);
186186
//!
187187
//! for line in reader.lines() {
188-
//! let line = try!(line);
189-
//! println!("{}", line);
188+
//! println!("{}", try!(line));
190189
//! }
191190
//!
192191
//! # Ok(())

0 commit comments

Comments
 (0)