Skip to content

Commit 7cf0fe1

Browse files
committed
Apply suggestions from review
1 parent 07cd4c8 commit 7cf0fe1

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ fn _assert_is_object_safe(_: &dyn Iterator<Item = ()>) {}
2222
/// generally, please see the [module-level documentation]. In particular, you
2323
/// may want to know how to [implement `Iterator`][impl].
2424
///
25-
/// [module-level documentation]: crate::iter
26-
/// [impl]: crate::iter#implementing-iterator
25+
/// [module-level documentation]: self
26+
/// [impl]: self#implementing-iterator
2727
#[stable(feature = "rust1", since = "1.0.0")]
2828
#[rustc_on_unimplemented(
2929
on(
@@ -107,6 +107,8 @@ pub trait Iterator {
107107
/// again may or may not eventually start returning [`Some(Item)`] again at some
108108
/// point.
109109
///
110+
/// [`Some(Item)`]: Some
111+
///
110112
/// # Examples
111113
///
112114
/// Basic usage:
@@ -447,7 +449,6 @@ pub trait Iterator {
447449
/// }
448450
/// ```
449451
///
450-
/// [`once`]: crate::iter::once
451452
/// [`OsStr`]: ../../std/ffi/struct.OsStr.html
452453
#[inline]
453454
#[stable(feature = "rust1", since = "1.0.0")]
@@ -2157,6 +2158,8 @@ pub trait Iterator {
21572158
/// argument is a double reference. You can see this effect in the
21582159
/// examples below, with `&&x`.
21592160
///
2161+
/// [`Some(element)`]: Some
2162+
///
21602163
/// # Examples
21612164
///
21622165
/// Basic usage:
@@ -2301,6 +2304,7 @@ pub trait Iterator {
23012304
/// This function might panic if the iterator has more than `usize::MAX`
23022305
/// non-matching elements.
23032306
///
2307+
/// [`Some(index)`]: Some
23042308
/// [`usize::MAX`]: crate::usize::MAX
23052309
///
23062310
/// # Examples
@@ -2362,6 +2366,8 @@ pub trait Iterator {
23622366
/// `rposition()` is short-circuiting; in other words, it will stop
23632367
/// processing as soon as it finds a `true`.
23642368
///
2369+
/// [`Some(index)`]: Some
2370+
///
23652371
/// # Examples
23662372
///
23672373
/// Basic usage:

0 commit comments

Comments
 (0)