Actions
Bug #9814
closedImproving documentation example for Enumerator#peek
Description
The existing example for Enumerator#peek doesn't effectively document the behavior when peeking after an enumerator has been entirely consumed. Rather, it documents the behavior of Enumerator#next.
This change more effectively demonstrates that StopIteration is raised when peeking beyond the end of the enumerator.
Files
Actions
Like0
Like0Like0Like0Like0Like0