keyword in's doc uses says it requires an Iterator instead of an IntoIterator #74529
Labels
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
In the doc for the keyword in it's stated that "The expression immediately following
in
must implement theIterator
trait."This is not completly right since it can be followed by anything that implements the
IntoIterator
trait.The doc for the keyword for instead correctly cites the
IntoIterator
trait, althouth it could be improved since it just appears out of thin air when the desugared version is showed, without any prior mentioning.This issue has been assigned to @Nicholas-Baron via this comment.
The text was updated successfully, but these errors were encountered: