@@ -85,7 +85,7 @@ pub unsafe trait SourceIter {
85
85
/// * whatever remains in the source after iteration has stopped
86
86
/// * the memory that has become unused by advancing a consuming iterator
87
87
///
88
- /// [`next()`]: trait. Iterator.html#method. next
88
+ /// [`next()`]: Iterator:: next
89
89
unsafe fn as_inner ( & mut self ) -> & mut Self :: Source ;
90
90
}
91
91
@@ -94,7 +94,7 @@ pub unsafe trait SourceIter {
94
94
/// This `struct` is created by the [`rev`] method on [`Iterator`]. See its
95
95
/// documentation for more.
96
96
///
97
- /// [`rev`]: trait. Iterator.html#method. rev
97
+ /// [`rev`]: Iterator:: rev
98
98
/// [`Iterator`]: trait.Iterator.html
99
99
#[ derive( Clone , Debug ) ]
100
100
#[ must_use = "iterators are lazy and do nothing unless consumed" ]
@@ -228,7 +228,7 @@ unsafe impl<I> TrustedLen for Rev<I> where I: TrustedLen + DoubleEndedIterator {
228
228
/// This `struct` is created by the [`copied`] method on [`Iterator`]. See its
229
229
/// documentation for more.
230
230
///
231
- /// [`copied`]: trait. Iterator.html#method. copied
231
+ /// [`copied`]: Iterator:: copied
232
232
/// [`Iterator`]: trait.Iterator.html
233
233
#[ stable( feature = "iter_copied" , since = "1.36.0" ) ]
234
234
#[ must_use = "iterators are lazy and do nothing unless consumed" ]
@@ -380,7 +380,7 @@ where
380
380
/// This `struct` is created by the [`cloned`] method on [`Iterator`]. See its
381
381
/// documentation for more.
382
382
///
383
- /// [`cloned`]: trait. Iterator.html#method. cloned
383
+ /// [`cloned`]: Iterator:: cloned
384
384
/// [`Iterator`]: trait.Iterator.html
385
385
#[ stable( feature = "iter_cloned" , since = "1.1.0" ) ]
386
386
#[ must_use = "iterators are lazy and do nothing unless consumed" ]
@@ -515,7 +515,7 @@ where
515
515
/// This `struct` is created by the [`cycle`] method on [`Iterator`]. See its
516
516
/// documentation for more.
517
517
///
518
- /// [`cycle`]: trait. Iterator.html#method. cycle
518
+ /// [`cycle`]: Iterator:: cycle
519
519
/// [`Iterator`]: trait.Iterator.html
520
520
#[ derive( Clone , Debug ) ]
521
521
#[ must_use = "iterators are lazy and do nothing unless consumed" ]
@@ -600,7 +600,7 @@ impl<I> FusedIterator for Cycle<I> where I: Clone + Iterator {}
600
600
/// This `struct` is created by the [`step_by`] method on [`Iterator`]. See
601
601
/// its documentation for more.
602
602
///
603
- /// [`step_by`]: trait. Iterator.html#method. step_by
603
+ /// [`step_by`]: Iterator:: step_by
604
604
/// [`Iterator`]: trait.Iterator.html
605
605
#[ must_use = "iterators are lazy and do nothing unless consumed" ]
606
606
#[ stable( feature = "iterator_step_by" , since = "1.28.0" ) ]
@@ -833,7 +833,7 @@ impl<I> ExactSizeIterator for StepBy<I> where I: ExactSizeIterator {}
833
833
/// This `struct` is created by the [`map`] method on [`Iterator`]. See its
834
834
/// documentation for more.
835
835
///
836
- /// [`map`]: trait. Iterator.html#method. map
836
+ /// [`map`]: Iterator:: map
837
837
/// [`Iterator`]: trait.Iterator.html
838
838
///
839
839
/// # Notes about side effects
@@ -1042,7 +1042,7 @@ unsafe impl<B, I: InPlaceIterable, F> InPlaceIterable for Map<I, F> where F: FnM
1042
1042
/// This `struct` is created by the [`filter`] method on [`Iterator`]. See its
1043
1043
/// documentation for more.
1044
1044
///
1045
- /// [`filter`]: trait. Iterator.html#method. filter
1045
+ /// [`filter`]: Iterator:: filter
1046
1046
/// [`Iterator`]: trait.Iterator.html
1047
1047
#[ must_use = "iterators are lazy and do nothing unless consumed" ]
1048
1048
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -1191,7 +1191,7 @@ unsafe impl<I: InPlaceIterable, P> InPlaceIterable for Filter<I, P> where P: FnM
1191
1191
/// This `struct` is created by the [`filter_map`] method on [`Iterator`]. See its
1192
1192
/// documentation for more.
1193
1193
///
1194
- /// [`filter_map`]: trait. Iterator.html#method. filter_map
1194
+ /// [`filter_map`]: Iterator:: filter_map
1195
1195
/// [`Iterator`]: trait.Iterator.html
1196
1196
#[ must_use = "iterators are lazy and do nothing unless consumed" ]
1197
1197
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -1338,7 +1338,7 @@ unsafe impl<B, I: InPlaceIterable, F> InPlaceIterable for FilterMap<I, F> where
1338
1338
/// This `struct` is created by the [`enumerate`] method on [`Iterator`]. See its
1339
1339
/// documentation for more.
1340
1340
///
1341
- /// [`enumerate`]: trait. Iterator.html#method. enumerate
1341
+ /// [`enumerate`]: Iterator:: enumerate
1342
1342
/// [`Iterator`]: trait.Iterator.html
1343
1343
#[ derive( Clone , Debug ) ]
1344
1344
#[ must_use = "iterators are lazy and do nothing unless consumed" ]
@@ -1574,7 +1574,7 @@ unsafe impl<I: InPlaceIterable> InPlaceIterable for Enumerate<I> {}
1574
1574
/// This `struct` is created by the [`peekable`] method on [`Iterator`]. See its
1575
1575
/// documentation for more.
1576
1576
///
1577
- /// [`peekable`]: trait. Iterator.html#method. peekable
1577
+ /// [`peekable`]: Iterator:: peekable
1578
1578
/// [`Iterator`]: trait.Iterator.html
1579
1579
#[ derive( Clone , Debug ) ]
1580
1580
#[ must_use = "iterators are lazy and do nothing unless consumed" ]
@@ -1743,7 +1743,7 @@ impl<I: Iterator> Peekable<I> {
1743
1743
/// Like [`next`], if there is a value, it is wrapped in a `Some(T)`.
1744
1744
/// But if the iteration is over, `None` is returned.
1745
1745
///
1746
- /// [`next`]: trait. Iterator.html#tymethod. next
1746
+ /// [`next`]: Iterator:: next
1747
1747
///
1748
1748
/// Because `peek()` returns a reference, and many iterators iterate over
1749
1749
/// references, there can be a possibly confusing situation where the
@@ -1871,7 +1871,7 @@ unsafe impl<I: InPlaceIterable> InPlaceIterable for Peekable<I> {}
1871
1871
/// This `struct` is created by the [`skip_while`] method on [`Iterator`]. See its
1872
1872
/// documentation for more.
1873
1873
///
1874
- /// [`skip_while`]: trait. Iterator.html#method. skip_while
1874
+ /// [`skip_while`]: Iterator:: skip_while
1875
1875
/// [`Iterator`]: trait.Iterator.html
1876
1876
#[ must_use = "iterators are lazy and do nothing unless consumed" ]
1877
1877
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -1993,7 +1993,7 @@ unsafe impl<I: InPlaceIterable, F> InPlaceIterable for SkipWhile<I, F> where
1993
1993
/// This `struct` is created by the [`take_while`] method on [`Iterator`]. See its
1994
1994
/// documentation for more.
1995
1995
///
1996
- /// [`take_while`]: trait. Iterator.html#method. take_while
1996
+ /// [`take_while`]: Iterator:: take_while
1997
1997
/// [`Iterator`]: trait.Iterator.html
1998
1998
#[ must_use = "iterators are lazy and do nothing unless consumed" ]
1999
1999
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -2128,7 +2128,7 @@ unsafe impl<I: InPlaceIterable, F> InPlaceIterable for TakeWhile<I, F> where
2128
2128
/// This `struct` is created by the [`map_while`] method on [`Iterator`]. See its
2129
2129
/// documentation for more.
2130
2130
///
2131
- /// [`map_while`]: trait. Iterator.html#method. map_while
2131
+ /// [`map_while`]: Iterator:: map_while
2132
2132
/// [`Iterator`]: trait.Iterator.html
2133
2133
#[ must_use = "iterators are lazy and do nothing unless consumed" ]
2134
2134
#[ unstable( feature = "iter_map_while" , reason = "recently added" , issue = "68537" ) ]
@@ -2226,7 +2226,7 @@ unsafe impl<B, I: InPlaceIterable, P> InPlaceIterable for MapWhile<I, P> where
2226
2226
/// This `struct` is created by the [`skip`] method on [`Iterator`]. See its
2227
2227
/// documentation for more.
2228
2228
///
2229
- /// [`skip`]: trait. Iterator.html#method. skip
2229
+ /// [`skip`]: Iterator:: skip
2230
2230
/// [`Iterator`]: trait.Iterator.html
2231
2231
#[ derive( Clone , Debug ) ]
2232
2232
#[ must_use = "iterators are lazy and do nothing unless consumed" ]
@@ -2422,7 +2422,7 @@ unsafe impl<I: InPlaceIterable> InPlaceIterable for Skip<I> {}
2422
2422
/// This `struct` is created by the [`take`] method on [`Iterator`]. See its
2423
2423
/// documentation for more.
2424
2424
///
2425
- /// [`take`]: trait. Iterator.html#method. take
2425
+ /// [`take`]: Iterator:: take
2426
2426
/// [`Iterator`]: trait.Iterator.html
2427
2427
#[ derive( Clone , Debug ) ]
2428
2428
#[ must_use = "iterators are lazy and do nothing unless consumed" ]
@@ -2627,7 +2627,7 @@ unsafe impl<I: TrustedLen> TrustedLen for Take<I> {}
2627
2627
/// This `struct` is created by the [`scan`] method on [`Iterator`]. See its
2628
2628
/// documentation for more.
2629
2629
///
2630
- /// [`scan`]: trait. Iterator.html#method. scan
2630
+ /// [`scan`]: Iterator:: scan
2631
2631
/// [`Iterator`]: trait.Iterator.html
2632
2632
#[ must_use = "iterators are lazy and do nothing unless consumed" ]
2633
2633
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -2735,7 +2735,7 @@ unsafe impl<St, F, B, I: InPlaceIterable> InPlaceIterable for Scan<I, St, F> whe
2735
2735
/// This `struct` is created by the [`inspect`] method on [`Iterator`]. See its
2736
2736
/// documentation for more.
2737
2737
///
2738
- /// [`inspect`]: trait. Iterator.html#method. inspect
2738
+ /// [`inspect`]: Iterator:: inspect
2739
2739
/// [`Iterator`]: trait.Iterator.html
2740
2740
#[ must_use = "iterators are lazy and do nothing unless consumed" ]
2741
2741
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
0 commit comments