@@ -22,8 +22,8 @@ fn _assert_is_object_safe(_: &dyn Iterator<Item = ()>) {}
22
22
/// generally, please see the [module-level documentation]. In particular, you
23
23
/// may want to know how to [implement `Iterator`][impl].
24
24
///
25
- /// [module-level documentation]: crate::iter
26
- /// [impl]: crate::iter #implementing-iterator
25
+ /// [module-level documentation]: self
26
+ /// [impl]: self #implementing-iterator
27
27
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
28
28
#[ rustc_on_unimplemented(
29
29
on(
@@ -107,6 +107,8 @@ pub trait Iterator {
107
107
/// again may or may not eventually start returning [`Some(Item)`] again at some
108
108
/// point.
109
109
///
110
+ /// [`Some(Item)`]: Some
111
+ ///
110
112
/// # Examples
111
113
///
112
114
/// Basic usage:
@@ -447,7 +449,6 @@ pub trait Iterator {
447
449
/// }
448
450
/// ```
449
451
///
450
- /// [`once`]: crate::iter::once
451
452
/// [`OsStr`]: ../../std/ffi/struct.OsStr.html
452
453
#[ inline]
453
454
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -2157,6 +2158,8 @@ pub trait Iterator {
2157
2158
/// argument is a double reference. You can see this effect in the
2158
2159
/// examples below, with `&&x`.
2159
2160
///
2161
+ /// [`Some(element)`]: Some
2162
+ ///
2160
2163
/// # Examples
2161
2164
///
2162
2165
/// Basic usage:
@@ -2301,6 +2304,7 @@ pub trait Iterator {
2301
2304
/// This function might panic if the iterator has more than `usize::MAX`
2302
2305
/// non-matching elements.
2303
2306
///
2307
+ /// [`Some(index)`]: Some
2304
2308
/// [`usize::MAX`]: crate::usize::MAX
2305
2309
///
2306
2310
/// # Examples
@@ -2362,6 +2366,8 @@ pub trait Iterator {
2362
2366
/// `rposition()` is short-circuiting; in other words, it will stop
2363
2367
/// processing as soon as it finds a `true`.
2364
2368
///
2369
+ /// [`Some(index)`]: Some
2370
+ ///
2365
2371
/// # Examples
2366
2372
///
2367
2373
/// Basic usage:
0 commit comments