diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs index 2d69eeb9fa962..42e90ec34db7c 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, //! } //! } //! ```