Skip to content

Commit

Permalink
Update exercise-book/src/iterators.md
Browse files Browse the repository at this point in the history
Co-authored-by: Andrei Listochkin (Андрей Листочкин) <[email protected]>
  • Loading branch information
miguelraz and listochkin authored Jan 21, 2025
1 parent e406068 commit b246c4c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion exercise-book/src/iterators.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ fn main() -> Result<(), Box<dyn Error>> {
let odd_numbers = reader.lines()
.filter_map(|line| line.ok())
.filter_map(|line| line.parse::<i32>().ok())
.map(|stringy_num| stringy_num.to_string())
.filter(|num| num % 2 != 0)
.collect::<Vec<i32>>();

Expand Down

0 comments on commit b246c4c

Please sign in to comment.