From 35450365ac2fda8b948fe6fd1a1123837a9554b0 Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Wed, 3 Feb 2021 09:13:27 +0100 Subject: [PATCH] Add "every" as a doc alias for "all". --- library/core/src/iter/traits/iterator.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/core/src/iter/traits/iterator.rs b/library/core/src/iter/traits/iterator.rs index 9f7ced829b0ac..c6eb4486c197d 100644 --- a/library/core/src/iter/traits/iterator.rs +++ b/library/core/src/iter/traits/iterator.rs @@ -2196,6 +2196,7 @@ pub trait Iterator { /// // we can still use `iter`, as there are more elements. /// assert_eq!(iter.next(), Some(&3)); /// ``` + #[doc(alias = "every")] #[inline] #[stable(feature = "rust1", since = "1.0.0")] fn all(&mut self, f: F) -> bool