Iterator::find: link to Iterator::position in docs for discoverability

This commit is contained in:
Maja Kądziołka 2022-12-26 22:49:22 +01:00
parent 298d763fc0
commit 37b88c842a
No known key found for this signature in database

View File

@ -2653,7 +2653,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
///