Skip to content

Commit

Permalink
Merge pull request #1522 from rafidude/patch-1
Browse files Browse the repository at this point in the history
Update iter_any.md
  • Loading branch information
marioidival authored Apr 25, 2022
2 parents 9927bc0 + fc820ba commit bf8d34c
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 @@ -35,7 +35,7 @@ fn main() {
// `iter()` for arrays yields `&i32`.
println!("2 in array1: {}", array1.iter() .any(|&x| x == 2));
// `into_iter()` for arrays yields `i32`.
println!("2 in array2: {}", array2.iter().any(|&x| x == 2));
println!("2 in array2: {}", array2.into_iter().any(|x| x == 2));
}
```

Expand Down

0 comments on commit bf8d34c

Please sign in to comment.