about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/libcore/iter.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs
index 2d69eeb9fa9..42e90ec34db 100644
--- a/src/libcore/iter.rs
+++ b/src/libcore/iter.rs
@@ -45,10 +45,8 @@
 //! let mut it = values.into_iter();
 //! loop {
 //!     match it.next() {
-//!         Some(x) => {
-//!             println!("{}", x);
-//!         }
-//!         None => { break }
+//!         Some(x) => println!("{}", x),
+//!         None => break,
 //!     }
 //! }
 //! ```