Rollup merge of #81697 - xfix:every-doc-alias, r=Mark-Simulacrum
Add "every" as a doc alias for "all". This matches [Array#every](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every) in JavaScript. Oddly enough, `core::iter::Iterator::all` appears twice. This appears to be a rustdoc bug which I decided to fill in as #81696. 
This commit is contained in:
commit
52bc54efff
1 changed files with 1 additions and 0 deletions
|
|
@ -2205,6 +2205,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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue