mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-14 17:48:10 +00:00
Simplify match
branches in iter.rs example
This commit is contained in:
parent
8943653624
commit
4b6248a806
@ -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,
|
||||
//! }
|
||||
//! }
|
||||
//! ```
|
||||
|
Loading…
Reference in New Issue
Block a user