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 0f3b503 commit 8f5b5e1Copy full SHA for 8f5b5e1
src/fn/closures/closure_examples/iter_any.md
@@ -32,9 +32,9 @@ fn main() {
32
let array2 = [4, 5, 6];
33
34
// 对数组的 `iter()` 举出 `&i32`。
35
- println!("2 in array1: {}", array1.iter().any(|&x| x == 2));
36
- // 对数组的 `into_iter()` 通常举出 `&i32`。
37
- println!("2 in array2: {}", array2.iter().any(|&x| x == 2));
+ println!("2 in array1: {}", array1.iter() .any(|&x| x == 2));
+ // 对数组的 `into_iter()` 举出 `i32`。
+ println!("2 in array2: {}", array2.into_iter().any(|x| x == 2));
38
}
39
```
40
0 commit comments