We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dfcc22e + e5965a4 commit 87d6244Copy full SHA for 87d6244
book.toml
@@ -9,3 +9,6 @@ editor = "ace"
9
10
[output.html.fold]
11
enable = true
12
+
13
+[output.html]
14
+git-repository-url = "https://github.com/rust-lang/rust-by-example"
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