Documentation for ExactSizeIterator
does not make clear that len()
should change with iteration
#98721
Labels
A-docs
Area: documentation for any part of the project, including the compiler, standard library, and tools
Reading between the lines on
ExactSizeIterator
(and investigating other implementations), it appears that the value of the returnedlen()
should change as iteration occurs.This is very subtle, and was missed by our entire team, see bevyengine/bevy#5149.
This information should be discussed prominently in the docs.
The text was updated successfully, but these errors were encountered: