Skip to content

Commit

Permalink
docs: update code example for Iterator#rposition
Browse files Browse the repository at this point in the history
  • Loading branch information
wtlin1228 committed Dec 26, 2024
1 parent a25032c commit d0c1975
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 @@ -3051,6 +3051,7 @@ pub trait Iterator {
///
/// // we can still use `iter`, as there are more elements.
/// assert_eq!(iter.next(), Some(&-1));
/// assert_eq!(iter.next_back(), Some(&3));
/// ```
#[inline]
#[stable(feature = "rust1", since = "1.0.0")]
Expand Down

0 comments on commit d0c1975

Please sign in to comment.