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 abbccac + 1a29529 commit cb578b1Copy full SHA for cb578b1
src/fn/closures/closure_examples/iter_any.md
@@ -34,7 +34,7 @@ fn main() {
34
35
// `iter()` for arrays yields `&i32`.
36
println!("2 in array1: {}", array1.iter() .any(|&x| x == 2));
37
- // `into_iter()` for arrays unusually yields `&i32`.
+ // `into_iter()` for arrays yields `i32`.
38
println!("2 in array2: {}", array2.iter().any(|&x| x == 2));
39
}
40
```
0 commit comments