Add "every" as a doc alias for "all".

This commit is contained in:
Konrad Borowski 2021-02-03 09:13:27 +01:00
parent e6a0f3cdf3
commit 35450365ac

View File

@ -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