diff options
| author | Georg Brandl <georg@python.org> | 2015-08-15 11:49:33 +0200 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2015-08-15 11:49:33 +0200 |
| commit | 56f3282f31118c894a79d355f76765a2ca6b14ce (patch) | |
| tree | d826cd60d0ebed3ffcf4745aa4837f071d87cf6a | |
| parent | e859498d1ca45f2719542f505eb0ba8b944e5668 (diff) | |
| download | rust-56f3282f31118c894a79d355f76765a2ca6b14ce.tar.gz rust-56f3282f31118c894a79d355f76765a2ca6b14ce.zip | |
Iterator::all() - document short-circuiting property parallel to any()
| -rw-r--r-- | src/libcore/iter.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs index 0471a08cd78..9db3bf6ec89 100644 --- a/src/libcore/iter.rs +++ b/src/libcore/iter.rs @@ -616,6 +616,8 @@ pub trait Iterator { /// Tests whether the predicate holds true for all elements in the iterator. /// + /// Does not consume the iterator past the first non-matching element. + /// /// # Examples /// /// ``` |
