Skip to content

Commit 89ccd70

Browse files
authored
Rollup merge of #106161 - meithecatte:iter-find-position, r=Mark-Simulacrum
Iterator::find: link to Iterator::position in docs for discoverability
2 parents d28ef9d + 37b88c8 commit 89ccd70

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/core/src/iter/traits/iterator.rs

+3
Original file line numberDiff line numberDiff line change
@@ -2654,7 +2654,10 @@ pub trait Iterator {
26542654
/// argument is a double reference. You can see this effect in the
26552655
/// examples below, with `&&x`.
26562656
///
2657+
/// If you need the index of the element, see [`position()`].
2658+
///
26572659
/// [`Some(element)`]: Some
2660+
/// [`position()`]: Iterator::position
26582661
///
26592662
/// # Examples
26602663
///

0 commit comments

Comments
 (0)