[easy] iterator documentation improvement. #39294
Labels
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
in the rust docs https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.filter_map
it says why is filter_map not equal to filter().map()
this makes no sense
it should ask
why is filter_map not equal to map().filter().
also would be nice to explain that filter_map is is basically map().filter(is_some).map(unwrap) might make it easier to grasp.
The text was updated successfully, but these errors were encountered: