]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #23927 - frewsxcv:patch-7, r=Manishearth
authorManish Goregaokar <manishsmail@gmail.com>
Wed, 1 Apr 2015 19:10:40 +0000 (00:40 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Wed, 1 Apr 2015 19:10:40 +0000 (00:40 +0530)
src/libcore/iter.rs

index 2d69eeb9fa962cf7de006cff5b279612fc1ae1a1..42e90ec34db7ce97853ff8a734997604d7f439f4 100644 (file)
 //! let mut it = values.into_iter();
 //! loop {
 //!     match it.next() {
-//!         Some(x) => {
-//!             println!("{}", x);
-//!         }
-//!         None => { break }
+//!         Some(x) => println!("{}", x),
+//!         None => break,
 //!     }
 //! }
 //! ```