Skip to content

Commit bf8d34c

Browse files
authored
Merge pull request #1522 from rafidude/patch-1
Update iter_any.md
2 parents 9927bc0 + fc820ba commit bf8d34c

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
@@ -35,7 +35,7 @@ fn main() {
3535
// `iter()` for arrays yields `&i32`.
3636
println!("2 in array1: {}", array1.iter() .any(|&x| x == 2));
3737
// `into_iter()` for arrays yields `i32`.
38-
println!("2 in array2: {}", array2.iter().any(|&x| x == 2));
38+
println!("2 in array2: {}", array2.into_iter().any(|x| x == 2));
3939
}
4040
```
4141

0 commit comments

Comments
 (0)