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.
1 parent ccc5c70 commit 6553091Copy full SHA for 6553091
src/fn/closures/closure_examples/iter_any.md
@@ -27,7 +27,7 @@ fn main() {
27
// `iter()` for vecs yields `&i32`. Destructure to `i32`.
28
println!("2 in vec1: {}", vec1.iter() .any(|&x| x == 2));
29
// `into_iter()` for vecs yields `i32`. No destructuring required.
30
- println!("2 in vec2: {}", vec2.into_iter().any(| x| x == 2));
+ println!("2 in vec2: {}", vec2.into_iter().any(|x| x == 2));
31
32
// `iter()` only borrows `vec1` and its elements, so they can be used again
33
println!("vec1 len: {}", vec1.len());
0 commit comments