Skip to content

Commit

Permalink
fix comment on into_iter() for arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
mqy committed Feb 6, 2022
1 parent 18c0055 commit 1a29529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fn/closures/closure_examples/iter_any.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ fn main() {
// `iter()` for arrays yields `&i32`.
println!("2 in array1: {}", array1.iter() .any(|&x| x == 2));
// `into_iter()` for arrays unusually yields `&i32`.
// `into_iter()` for arrays yields `i32`.
println!("2 in array2: {}", array2.iter().any(|&x| x == 2));
}
```
Expand Down

0 comments on commit 1a29529

Please sign in to comment.