From 56f3282f31118c894a79d355f76765a2ca6b14ce Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 15 Aug 2015 11:49:33 +0200 Subject: [PATCH] Iterator::all() - document short-circuiting property parallel to any() --- src/libcore/iter.rs | 2 ++ 1 file changed, 2 insertions(+) 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 @@ fn fold(self, init: B, mut f: F) -> B where /// Tests whether the predicate holds true for all elements in the iterator. /// + /// Does not consume the iterator past the first non-matching element. + /// /// # Examples /// /// ```