@@ -35,9 +35,9 @@ use crate::hash::Hash;
35
35
/// assert_eq!(arr[1..=3], [ 1,2,3 ]);
36
36
/// ```
37
37
///
38
- /// [`IntoIterator`]: ../ iter/trait.Iterator.html
39
- /// [`Iterator`]: ../ iter/trait.IntoIterator.html
40
- /// [slicing index]: ../ slice/trait. SliceIndex.html
38
+ /// [`IntoIterator`]: crate:: iter::IntoIterator
39
+ /// [`Iterator`]: crate:: iter::Iterator
40
+ /// [slicing index]: crate:: slice:: SliceIndex
41
41
#[ cfg_attr( not( bootstrap) , lang = "RangeFull" ) ]
42
42
#[ doc( alias = ".." ) ]
43
43
#[ derive( Copy , Clone , Default , PartialEq , Eq , Hash ) ]
@@ -179,7 +179,7 @@ impl<Idx: PartialOrd<Idx>> Range<Idx> {
179
179
/// assert_eq!(arr[1..=3], [ 1,2,3 ]);
180
180
/// ```
181
181
///
182
- /// [`Iterator`]: ../ iter/trait. IntoIterator.html
182
+ /// [`Iterator`]: crate:: iter:: IntoIterator
183
183
#[ cfg_attr( not( bootstrap) , lang = "RangeFrom" ) ]
184
184
#[ doc( alias = ".." ) ]
185
185
#[ derive( Clone , PartialEq , Eq , Hash ) ] // not Copy -- see #27186
@@ -260,9 +260,9 @@ impl<Idx: PartialOrd<Idx>> RangeFrom<Idx> {
260
260
/// assert_eq!(arr[1..=3], [ 1,2,3 ]);
261
261
/// ```
262
262
///
263
- /// [`IntoIterator`]: ../ iter/trait.Iterator.html
264
- /// [`Iterator`]: ../ iter/trait.IntoIterator.html
265
- /// [slicing index]: ../ slice/trait. SliceIndex.html
263
+ /// [`IntoIterator`]: crate:: iter::IntoIterator
264
+ /// [`Iterator`]: crate:: iter::Iterator
265
+ /// [slicing index]: crate:: slice:: SliceIndex
266
266
#[ cfg_attr( not( bootstrap) , lang = "RangeTo" ) ]
267
267
#[ doc( alias = ".." ) ]
268
268
#[ derive( Copy , Clone , PartialEq , Eq , Hash ) ]
@@ -315,8 +315,8 @@ impl<Idx: PartialOrd<Idx>> RangeTo<Idx> {
315
315
/// iteration has finished are **unspecified** other than that [`.is_empty()`]
316
316
/// will return `true` once no more values will be produced.
317
317
///
318
- /// [fused]: ../ iter/trait. FusedIterator.html
319
- /// [`.is_empty()`]: #method. is_empty
318
+ /// [fused]: crate:: iter:: FusedIterator
319
+ /// [`.is_empty()`]: RangeInclusive:: is_empty
320
320
///
321
321
/// # Examples
322
322
///
@@ -383,8 +383,8 @@ impl<Idx> RangeInclusive<Idx> {
383
383
/// Note: the value returned by this method is unspecified after the range
384
384
/// has been iterated to exhaustion.
385
385
///
386
- /// [`end()`]: #method. end
387
- /// [`is_empty()`]: #method. is_empty
386
+ /// [`end()`]: RangeInclusive:: end
387
+ /// [`is_empty()`]: RangeInclusive:: is_empty
388
388
///
389
389
/// # Examples
390
390
///
@@ -408,8 +408,8 @@ impl<Idx> RangeInclusive<Idx> {
408
408
/// Note: the value returned by this method is unspecified after the range
409
409
/// has been iterated to exhaustion.
410
410
///
411
- /// [`start()`]: #method. start
412
- /// [`is_empty()`]: #method. is_empty
411
+ /// [`start()`]: RangeInclusive:: start
412
+ /// [`is_empty()`]: RangeInclusive:: is_empty
413
413
///
414
414
/// # Examples
415
415
///
@@ -558,9 +558,9 @@ impl<Idx: PartialOrd<Idx>> RangeInclusive<Idx> {
558
558
/// assert_eq!(arr[1..=3], [ 1,2,3 ]);
559
559
/// ```
560
560
///
561
- /// [`IntoIterator`]: ../ iter/trait.Iterator.html
562
- /// [`Iterator`]: ../ iter/trait.IntoIterator.html
563
- /// [slicing index]: ../ slice/trait. SliceIndex.html
561
+ /// [`IntoIterator`]: crate:: iter::IntoIterator
562
+ /// [`Iterator`]: crate:: iter::Iterator
563
+ /// [slicing index]: crate:: slice:: SliceIndex
564
564
#[ cfg_attr( not( bootstrap) , lang = "RangeToInclusive" ) ]
565
565
#[ doc( alias = "..=" ) ]
566
566
#[ derive( Copy , Clone , PartialEq , Eq , Hash ) ]
0 commit comments