Skip to content

Commit

Permalink
Update iter_find.md (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
fake-rick authored Feb 23, 2024
1 parent 87b5438 commit e0846cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fn/closures/closure_examples/iter_find.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fn main() {
// 对数组的 `iter()` 举出 `&i32`。
println!("Find 2 in array1: {:?}", array1.iter() .find(|&&x| x == 2));
// 对数组的 `into_iter()` 通常举出 `&i32`。
// 对数组的 `into_iter()` 通常举出 `i32`。
println!("Find 2 in array2: {:?}", array2.into_iter().find(|&x| x == 2));
}
```
Expand Down

0 comments on commit e0846cb

Please sign in to comment.