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:
Matthias Krüger 2022-12-28 22:22:21 +01:00 committed by GitHub
commit 89ccd704f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2654,7 +2654,10 @@ fn check<T>(mut f: impl FnMut(T) -> bool) -> impl FnMut((), T) -> ControlFlow<()
/// 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
///