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 e9d4534 commit 44f4839Copy full SHA for 44f4839
src/fn/closures/closure_examples/iter_find.md
@@ -41,8 +41,8 @@ fn main() {
41
42
// `iter()` for arrays yields `&i32`
43
println!("Find 2 in array1: {:?}", array1.iter() .find(|&&x| x == 2));
44
- // `into_iter()` for arrays unusually yields `&i32`
45
- println!("Find 2 in array2: {:?}", array2.into_iter().find(|&&x| x == 2));
+ // `into_iter()` for arrays yields `i32`
+ println!("Find 2 in array2: {:?}", array2.into_iter().find(|&x| x == 2));
46
}
47
```
48
0 commit comments