Skip to content

Commit 06cf778

Browse files
authored
Merge pull request #1658 from tomasmiguez/patch-1
fix: add missing space
2 parents 2c76b3d + 6553091 commit 06cf778

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fn/closures/closure_examples/iter_any.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fn main() {
2727
// `iter()` for vecs yields `&i32`. Destructure to `i32`.
2828
println!("2 in vec1: {}", vec1.iter() .any(|&x| x == 2));
2929
// `into_iter()` for vecs yields `i32`. No destructuring required.
30-
println!("2 in vec2: {}", vec2.into_iter().any(| x| x == 2));
30+
println!("2 in vec2: {}", vec2.into_iter().any(|x| x == 2));
3131
3232
// `iter()` only borrows `vec1` and its elements, so they can be used again
3333
println!("vec1 len: {}", vec1.len());

0 commit comments

Comments
 (0)