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.
2 parents 9927bc0 + fc820ba commit bf8d34cCopy full SHA for bf8d34c
src/fn/closures/closure_examples/iter_any.md
@@ -35,7 +35,7 @@ fn main() {
35
// `iter()` for arrays yields `&i32`.
36
println!("2 in array1: {}", array1.iter() .any(|&x| x == 2));
37
// `into_iter()` for arrays yields `i32`.
38
- println!("2 in array2: {}", array2.iter().any(|&x| x == 2));
+ println!("2 in array2: {}", array2.into_iter().any(|x| x == 2));
39
}
40
```
41
0 commit comments