Skip to content

Commit

Permalink
Make for loop desugaring for iterators more precise
Browse files Browse the repository at this point in the history
The UFCS call IntoIterator::into_iter() is used by the for loop.
  • Loading branch information
bluss committed Feb 27, 2016
1 parent 0913004 commit 33d1a58
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 33d1a58

Please sign in to comment.