@@ -35,9 +35,7 @@ use crate::hash::Hash;
3535/// assert_eq!(arr[1..=3], [ 1,2,3 ]);
3636/// ```
3737///
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
4139#[ cfg_attr( not( bootstrap) , lang = "RangeFull" ) ]
4240#[ doc( alias = ".." ) ]
4341#[ derive( Copy , Clone , Default , PartialEq , Eq , Hash ) ]
@@ -178,8 +176,6 @@ impl<Idx: PartialOrd<Idx>> Range<Idx> {
178176/// assert_eq!(arr[1.. 3], [ 1,2 ]);
179177/// assert_eq!(arr[1..=3], [ 1,2,3 ]);
180178/// ```
181- ///
182- /// [`Iterator`]: ../iter/trait.IntoIterator.html
183179#[ cfg_attr( not( bootstrap) , lang = "RangeFrom" ) ]
184180#[ doc( alias = ".." ) ]
185181#[ derive( Clone , PartialEq , Eq , Hash ) ] // not Copy -- see #27186
@@ -260,9 +256,7 @@ impl<Idx: PartialOrd<Idx>> RangeFrom<Idx> {
260256/// assert_eq!(arr[1..=3], [ 1,2,3 ]);
261257/// ```
262258///
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
266260#[ cfg_attr( not( bootstrap) , lang = "RangeTo" ) ]
267261#[ doc( alias = ".." ) ]
268262#[ derive( Copy , Clone , PartialEq , Eq , Hash ) ]
@@ -315,8 +309,8 @@ impl<Idx: PartialOrd<Idx>> RangeTo<Idx> {
315309/// iteration has finished are **unspecified** other than that [`.is_empty()`]
316310/// will return `true` once no more values will be produced.
317311///
318- /// [fused]: ../ iter/trait. FusedIterator.html
319- /// [`.is_empty()`]: #method. is_empty
312+ /// [fused]: crate:: iter:: FusedIterator
313+ /// [`.is_empty()`]: RangeInclusive:: is_empty
320314///
321315/// # Examples
322316///
@@ -383,8 +377,8 @@ impl<Idx> RangeInclusive<Idx> {
383377 /// Note: the value returned by this method is unspecified after the range
384378 /// has been iterated to exhaustion.
385379 ///
386- /// [`end()`]: #method. end
387- /// [`is_empty()`]: #method. is_empty
380+ /// [`end()`]: RangeInclusive:: end
381+ /// [`is_empty()`]: RangeInclusive:: is_empty
388382 ///
389383 /// # Examples
390384 ///
@@ -408,8 +402,8 @@ impl<Idx> RangeInclusive<Idx> {
408402 /// Note: the value returned by this method is unspecified after the range
409403 /// has been iterated to exhaustion.
410404 ///
411- /// [`start()`]: #method. start
412- /// [`is_empty()`]: #method. is_empty
405+ /// [`start()`]: RangeInclusive:: start
406+ /// [`is_empty()`]: RangeInclusive:: is_empty
413407 ///
414408 /// # Examples
415409 ///
@@ -558,9 +552,7 @@ impl<Idx: PartialOrd<Idx>> RangeInclusive<Idx> {
558552/// assert_eq!(arr[1..=3], [ 1,2,3 ]);
559553/// ```
560554///
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
564556#[ cfg_attr( not( bootstrap) , lang = "RangeToInclusive" ) ]
565557#[ doc( alias = "..=" ) ]
566558#[ derive( Copy , Clone , PartialEq , Eq , Hash ) ]
0 commit comments