Skip to content

Commit 4b6248a

Browse files
committed
Simplify match branches in iter.rs example
1 parent 8943653 commit 4b6248a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/libcore/iter.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,8 @@
4545
//! let mut it = values.into_iter();
4646
//! loop {
4747
//! match it.next() {
48-
//! Some(x) => {
49-
//! println!("{}", x);
50-
//! }
51-
//! None => { break }
48+
//! Some(x) => println!("{}", x),
49+
//! None => break,
5250
//! }
5351
//! }
5452
//! ```

0 commit comments

Comments
 (0)