Skip to content

Commit

Permalink
Merge pull request #1502 from mqy/master
Browse files Browse the repository at this point in the history
fix comment on into_iter() for arrays
  • Loading branch information
marioidival authored Feb 8, 2022
2 parents abbccac + 1a29529 commit cb578b1
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 cb578b1

Please sign in to comment.