Skip to content

Commit

Permalink
fix-typo (#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryImMouse authored Sep 18, 2024
1 parent 1cf73e5 commit 1fe251f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ fn main() {
// `iter()` для массивов даёт `&i32`.
println!("2 в array1: {}", array1.iter() .any(|&x| x == 2));
// `into_iter()` для массивов неожиданно даёт `&i32`.
println!("2 в array2: {}", array2.into_iter().any(|&x| x == 2));
// `into_iter()` для массивов даёт `i32`.
println!("2 в array2: {}", array2.into_iter().any(|x| x == 2));
}
```

Expand Down

0 comments on commit 1fe251f

Please sign in to comment.