diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs index 96302acb8d960..d6bd9dbf4bde2 100644 --- a/src/libcore/iter.rs +++ b/src/libcore/iter.rs @@ -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); },