We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 298d763 commit 37b88c8Copy full SHA for 37b88c8
library/core/src/iter/traits/iterator.rs
@@ -2653,7 +2653,10 @@ pub trait Iterator {
2653
/// argument is a double reference. You can see this effect in the
2654
/// examples below, with `&&x`.
2655
///
2656
+ /// If you need the index of the element, see [`position()`].
2657
+ ///
2658
/// [`Some(element)`]: Some
2659
+ /// [`position()`]: Iterator::position
2660
2661
/// # Examples
2662
0 commit comments