Skip to content

Commit 1a29529

Browse files
committed
fix comment on into_iter() for arrays
1 parent 18c0055 commit 1a29529

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)