Skip to content

Commit 52bc54e

Browse files
authored
Rollup merge of rust-lang#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 rust-lang#81696. ![image](https://user-images.githubusercontent.com/1297598/106717890-94f43e80-6600-11eb-9428-2cd425823df9.png)
2 parents 44e526b + 3545036 commit 52bc54e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/iter/traits/iterator.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2205,6 +2205,7 @@ pub trait Iterator {
22052205
/// // we can still use `iter`, as there are more elements.
22062206
/// assert_eq!(iter.next(), Some(&3));
22072207
/// ```
2208+
#[doc(alias = "every")]
22082209
#[inline]
22092210
#[stable(feature = "rust1", since = "1.0.0")]
22102211
fn all<F>(&mut self, f: F) -> bool

0 commit comments

Comments
 (0)