@@ -35,9 +35,9 @@ 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+ /// [`IntoIterator`]: crate:: iter::IntoIterator
39+ /// [`Iterator`]: crate:: iter::Iterator
40+ /// [slicing index]: crate:: slice:: SliceIndex
4141#[ cfg_attr( not( bootstrap) , lang = "RangeFull" ) ]
4242#[ doc( alias = ".." ) ]
4343#[ derive( Copy , Clone , Default , PartialEq , Eq , Hash ) ]
@@ -179,7 +179,7 @@ impl<Idx: PartialOrd<Idx>> Range<Idx> {
179179/// assert_eq!(arr[1..=3], [ 1,2,3 ]);
180180/// ```
181181///
182- /// [`Iterator`]: ../ iter/trait. IntoIterator.html
182+ /// [`Iterator`]: crate:: iter:: IntoIterator
183183#[ cfg_attr( not( bootstrap) , lang = "RangeFrom" ) ]
184184#[ doc( alias = ".." ) ]
185185#[ derive( Clone , PartialEq , Eq , Hash ) ] // not Copy -- see #27186
@@ -260,9 +260,9 @@ impl<Idx: PartialOrd<Idx>> RangeFrom<Idx> {
260260/// assert_eq!(arr[1..=3], [ 1,2,3 ]);
261261/// ```
262262///
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
266266#[ cfg_attr( not( bootstrap) , lang = "RangeTo" ) ]
267267#[ doc( alias = ".." ) ]
268268#[ derive( Copy , Clone , PartialEq , Eq , Hash ) ]
@@ -315,8 +315,8 @@ impl<Idx: PartialOrd<Idx>> RangeTo<Idx> {
315315/// iteration has finished are **unspecified** other than that [`.is_empty()`]
316316/// will return `true` once no more values will be produced.
317317///
318- /// [fused]: ../ iter/trait. FusedIterator.html
319- /// [`.is_empty()`]: #method. is_empty
318+ /// [fused]: crate:: iter:: FusedIterator
319+ /// [`.is_empty()`]: RangeInclusive:: is_empty
320320///
321321/// # Examples
322322///
@@ -383,8 +383,8 @@ impl<Idx> RangeInclusive<Idx> {
383383 /// Note: the value returned by this method is unspecified after the range
384384 /// has been iterated to exhaustion.
385385 ///
386- /// [`end()`]: #method. end
387- /// [`is_empty()`]: #method. is_empty
386+ /// [`end()`]: RangeInclusive:: end
387+ /// [`is_empty()`]: RangeInclusive:: is_empty
388388 ///
389389 /// # Examples
390390 ///
@@ -408,8 +408,8 @@ impl<Idx> RangeInclusive<Idx> {
408408 /// Note: the value returned by this method is unspecified after the range
409409 /// has been iterated to exhaustion.
410410 ///
411- /// [`start()`]: #method. start
412- /// [`is_empty()`]: #method. is_empty
411+ /// [`start()`]: RangeInclusive:: start
412+ /// [`is_empty()`]: RangeInclusive:: is_empty
413413 ///
414414 /// # Examples
415415 ///
@@ -558,9 +558,9 @@ impl<Idx: PartialOrd<Idx>> RangeInclusive<Idx> {
558558/// assert_eq!(arr[1..=3], [ 1,2,3 ]);
559559/// ```
560560///
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
564564#[ cfg_attr( not( bootstrap) , lang = "RangeToInclusive" ) ]
565565#[ doc( alias = "..=" ) ]
566566#[ derive( Copy , Clone , PartialEq , Eq , Hash ) ]
0 commit comments