Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Peekable remember peeking a None #37834

Merged
merged 1 commit into from
Nov 22, 2016
Merged

Commits on Nov 17, 2016

  1. core::iter: Peekable should remember peeking a None

    Peekable must remember if a None has been seen in the `.peek()` method.
    It ensures that `.peek(); .peek();` or `.peek(); .next();` only advances the
    underlying iterator at most once. This does not by itself make the iterator
    fused.
    bluss committed Nov 17, 2016
    Configuration menu
    Copy the full SHA
    6c2a456 View commit details
    Browse the repository at this point in the history