Simplify match branches in iter.rs example

This commit is contained in:
Corey Farwell 2015-03-31 21:22:17 -04:00
parent 8943653624
commit 4b6248a806

View File

@ -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,
//! }
//! }
//! ```