Rollup merge of #106161 - meithecatte:iter-find-position, r=Mark-Simulacrum
Iterator::find: link to Iterator::position in docs for discoverability
This commit is contained in:
commit
89ccd704f0
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue