]> git.lizzy.rs Git - rust.git/commitdiff
doc: binding not needed
authorTshepang Lekhonkhobe <tshepang@gmail.com>
Thu, 5 May 2016 21:55:36 +0000 (23:55 +0200)
committerTshepang Lekhonkhobe <tshepang@gmail.com>
Fri, 6 May 2016 19:04:40 +0000 (21:04 +0200)
src/libstd/io/mod.rs

index 46c6a23d8d4e8d07289946ffefa6e98afd8c9272..a058337a50afda4e2607ca3f9cd83e1511b0dfd9 100644 (file)
 //! let reader = BufReader::new(f);
 //!
 //! for line in reader.lines() {
-//!     let line = try!(line);
-//!     println!("{}", line);
+//!     println!("{}", try!(line));
 //! }
 //!
 //! # Ok(())