Skip to content

Commit

Permalink
Simplify match branches in iter.rs example
Browse files Browse the repository at this point in the history
  • Loading branch information
frewsxcv committed Apr 1, 2015
1 parent 8943653 commit 4b6248a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/libcore/iter.rs
Expand Up @@ -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,
//! }
//! }
//! ```
Expand Down

0 comments on commit 4b6248a

Please sign in to comment.