Skip to content

Commit cb578b1

Browse files
authored
Merge pull request #1502 from mqy/master
fix comment on into_iter() for arrays
2 parents abbccac + 1a29529 commit cb578b1

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

0 commit comments

Comments
 (0)