Skip to content

Commit

Permalink
Rollup merge of #83066 - Seppel3210:master, r=joshtriplett
Browse files Browse the repository at this point in the history
Add `reverse` search alias for Iterator::rev()

When searching for "reverse" in rustdoc you can't find the rev method on Iterator so here is a search alias for that.
  • Loading branch information
JohnTitor authored Mar 14, 2021
2 parents dda9d05 + f201746 commit 54546a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/iter/traits/iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2737,6 +2737,7 @@ pub trait Iterator {
/// assert_eq!(iter.next(), None);
/// ```
#[inline]
#[doc(alias = "reverse")]
#[stable(feature = "rust1", since = "1.0.0")]
fn rev(self) -> Rev<Self>
where
Expand Down

0 comments on commit 54546a8

Please sign in to comment.