@@ -35,9 +35,7 @@ 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
+ /// [slicing index]: crate::slice::SliceIndex
41
39
#[ cfg_attr( not( bootstrap) , lang = "RangeFull" ) ]
42
40
#[ doc( alias = ".." ) ]
43
41
#[ derive( Copy , Clone , Default , PartialEq , Eq , Hash ) ]
@@ -178,8 +176,6 @@ impl<Idx: PartialOrd<Idx>> Range<Idx> {
178
176
/// assert_eq!(arr[1.. 3], [ 1,2 ]);
179
177
/// assert_eq!(arr[1..=3], [ 1,2,3 ]);
180
178
/// ```
181
- ///
182
- /// [`Iterator`]: ../iter/trait.IntoIterator.html
183
179
#[ cfg_attr( not( bootstrap) , lang = "RangeFrom" ) ]
184
180
#[ doc( alias = ".." ) ]
185
181
#[ derive( Clone , PartialEq , Eq , Hash ) ] // not Copy -- see #27186
@@ -260,9 +256,7 @@ impl<Idx: PartialOrd<Idx>> RangeFrom<Idx> {
260
256
/// assert_eq!(arr[1..=3], [ 1,2,3 ]);
261
257
/// ```
262
258
///
263
- /// [`IntoIterator`]: ../iter/trait.Iterator.html
264
- /// [`Iterator`]: ../iter/trait.IntoIterator.html
265
- /// [slicing index]: ../slice/trait.SliceIndex.html
259
+ /// [slicing index]: crate::slice::SliceIndex
266
260
#[ cfg_attr( not( bootstrap) , lang = "RangeTo" ) ]
267
261
#[ doc( alias = ".." ) ]
268
262
#[ derive( Copy , Clone , PartialEq , Eq , Hash ) ]
@@ -315,8 +309,8 @@ impl<Idx: PartialOrd<Idx>> RangeTo<Idx> {
315
309
/// iteration has finished are **unspecified** other than that [`.is_empty()`]
316
310
/// will return `true` once no more values will be produced.
317
311
///
318
- /// [fused]: ../ iter/trait. FusedIterator.html
319
- /// [`.is_empty()`]: #method. is_empty
312
+ /// [fused]: crate:: iter:: FusedIterator
313
+ /// [`.is_empty()`]: RangeInclusive:: is_empty
320
314
///
321
315
/// # Examples
322
316
///
@@ -383,8 +377,8 @@ impl<Idx> RangeInclusive<Idx> {
383
377
/// Note: the value returned by this method is unspecified after the range
384
378
/// has been iterated to exhaustion.
385
379
///
386
- /// [`end()`]: #method. end
387
- /// [`is_empty()`]: #method. is_empty
380
+ /// [`end()`]: RangeInclusive:: end
381
+ /// [`is_empty()`]: RangeInclusive:: is_empty
388
382
///
389
383
/// # Examples
390
384
///
@@ -408,8 +402,8 @@ impl<Idx> RangeInclusive<Idx> {
408
402
/// Note: the value returned by this method is unspecified after the range
409
403
/// has been iterated to exhaustion.
410
404
///
411
- /// [`start()`]: #method. start
412
- /// [`is_empty()`]: #method. is_empty
405
+ /// [`start()`]: RangeInclusive:: start
406
+ /// [`is_empty()`]: RangeInclusive:: is_empty
413
407
///
414
408
/// # Examples
415
409
///
@@ -558,9 +552,7 @@ impl<Idx: PartialOrd<Idx>> RangeInclusive<Idx> {
558
552
/// assert_eq!(arr[1..=3], [ 1,2,3 ]);
559
553
/// ```
560
554
///
561
- /// [`IntoIterator`]: ../iter/trait.Iterator.html
562
- /// [`Iterator`]: ../iter/trait.IntoIterator.html
563
- /// [slicing index]: ../slice/trait.SliceIndex.html
555
+ /// [slicing index]: crate::slice::SliceIndex
564
556
#[ cfg_attr( not( bootstrap) , lang = "RangeToInclusive" ) ]
565
557
#[ doc( alias = "..=" ) ]
566
558
#[ derive( Copy , Clone , PartialEq , Eq , Hash ) ]
0 commit comments