about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKonrad Borowski <konrad@borowski.pw>2021-02-03 09:13:27 +0100
committerKonrad Borowski <konrad@borowski.pw>2021-02-03 09:13:27 +0100
commit35450365ac2fda8b948fe6fd1a1123837a9554b0 (patch)
tree0bbbd5b6d9a4abbdb7549b2de5a5d2176f603335
parente6a0f3cdf3801394a53ffa42683385d94b02c772 (diff)
downloadrust-35450365ac2fda8b948fe6fd1a1123837a9554b0.tar.gz
rust-35450365ac2fda8b948fe6fd1a1123837a9554b0.zip
Add "every" as a doc alias for "all".
-rw-r--r--library/core/src/iter/traits/iterator.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/iter/traits/iterator.rs b/library/core/src/iter/traits/iterator.rs
index 9f7ced829b0..c6eb4486c19 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<F>(&mut self, f: F) -> bool