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
@ -2654,7 +2654,10 @@ pub trait Iterator {
|
|||||||
/// argument is a double reference. You can see this effect in the
|
/// argument is a double reference. You can see this effect in the
|
||||||
/// examples below, with `&&x`.
|
/// examples below, with `&&x`.
|
||||||
///
|
///
|
||||||
|
/// If you need the index of the element, see [`position()`].
|
||||||
|
///
|
||||||
/// [`Some(element)`]: Some
|
/// [`Some(element)`]: Some
|
||||||
|
/// [`position()`]: Iterator::position
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user