Skip to content

Commit

Permalink
Auto merge of #31942 - bluss:iter-desugar, r=steveklabnik
Browse files Browse the repository at this point in the history
Make for loop desugaring for iterators more precise

The UFCS call IntoIterator::into_iter() is used by the for loop.
  • Loading branch information
bors committed Feb 27, 2016
2 parents d56677a + 33d1a58 commit 54fdae3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
//! ```
//! let values = vec![1, 2, 3, 4, 5];
//! {
//! let result = match values.into_iter() {
//! let result = match IntoIterator::into_iter(values) {
//! mut iter => loop {
//! match iter.next() {
//! Some(x) => { println!("{}", x); },
Expand Down

0 comments on commit 54fdae3

Please sign in to comment.