Skip to content

Commit

Permalink
Rollup merge of #106161 - meithecatte:iter-find-position, r=Mark-Simu…
Browse files Browse the repository at this point in the history
…lacrum

Iterator::find: link to Iterator::position in docs for discoverability
  • Loading branch information
matthiaskrgr committed Dec 28, 2022
2 parents d28ef9d + 37b88c8 commit 89ccd70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/core/src/iter/traits/iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2654,7 +2654,10 @@ pub trait Iterator {
/// argument is a double reference. You can see this effect in the
/// examples below, with `&&x`.
///
/// If you need the index of the element, see [`position()`].
///
/// [`Some(element)`]: Some
/// [`position()`]: Iterator::position
///
/// # Examples
///
Expand Down

0 comments on commit 89ccd70

Please sign in to comment.