Skip to content

Commit 56f3282

Browse files
committed
Iterator::all() - document short-circuiting property parallel to any()
1 parent e859498 commit 56f3282

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libcore/iter.rs

+2
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,8 @@ pub trait Iterator {
616616

617617
/// Tests whether the predicate holds true for all elements in the iterator.
618618
///
619+
/// Does not consume the iterator past the first non-matching element.
620+
///
619621
/// # Examples
620622
///
621623
/// ```

0 commit comments

Comments
 (0)