We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a25032c commit ec101bbCopy full SHA for ec101bb
library/core/src/iter/traits/iterator.rs
@@ -2393,7 +2393,7 @@ pub trait Iterator {
2393
/// let res = data.iter().try_for_each(|x| writeln!(stdout(), "{x}"));
2394
/// assert!(res.is_ok());
2395
///
2396
- /// let mut it = data.iter().cloned();
+ /// let mut it = data.into_iter();
2397
/// let res = it.try_for_each(|x| rename(x, Path::new(x).with_extension("old")));
2398
/// assert!(res.is_err());
2399
/// // It short-circuited, so the remaining items are still in the iterator:
0 commit comments