Improve documentation for suspicious_map
#4793
Labels
A-documentation
Area: Adding or improving documentation
suspicious_map
#4793
The error message for `` only mentions one possible case, that somebody confused
map
with `filter`.Another likely cause is that the code predates
Iterator::for_each
. It was common to usecount
to drive the iterator to completion. It would be helpful if that case could be added to the error message, as the hit withfilter
confused me more than it helped.This is the current error message of Rust stable 1.39.
The text was updated successfully, but these errors were encountered: