Skip to content

Mention that find() doesn't consume the full iterator #19150

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

Merged
merged 1 commit into from
Nov 23, 2014

Conversation

Manishearth
Copy link
Member

It's useful to know this (opens up a bunch of other opportunities especially whilst parsing)

@@ -549,6 +549,8 @@ pub trait Iterator<A> {
}

/// Return the first element satisfying the specified predicate
///
/// Will not consume the iterator past the first found element
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be "Returns the... " and "Does not consume..." (also both lines should end with a period).

Content-wise LGTM.

@Manishearth
Copy link
Member Author

@gankro fixed, thanks

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Nov 22, 2014
It's useful to know this (opens up a bunch of other opportunities especially whilst parsing)
@Manishearth
Copy link
Member Author

@gankro How did this fail? O.o

@Gankra
Copy link
Contributor

Gankra commented Nov 23, 2014

Runtime/io stuff is really unstable right now. Definitely not your fault (in this PR, at least).

bors added a commit that referenced this pull request Nov 23, 2014
It's useful to know this (opens up a bunch of other opportunities especially whilst parsing)
@bors bors closed this Nov 23, 2014
@bors bors merged commit f85f971 into rust-lang:master Nov 23, 2014
@Manishearth Manishearth deleted the find-doc branch January 10, 2015 21:27
lnicola pushed a commit to lnicola/rust that referenced this pull request Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants