We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e197a2b + f85f971 commit 220b99bCopy full SHA for 220b99b
src/libcore/iter.rs
@@ -548,7 +548,9 @@ pub trait Iterator<A> {
548
false
549
}
550
551
- /// Return the first element satisfying the specified predicate
+ /// Returns the first element satisfying the specified predicate.
552
+ ///
553
+ /// Does not consume the iterator past the first found element.
554
#[inline]
555
fn find(&mut self, predicate: |&A| -> bool) -> Option<A> {
556
for x in *self {
0 commit comments