Skip to content

Commit 53a1d6f

Browse files
committed
Intra doc for iter marker traits
1 parent 91738d8 commit 53a1d6f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/libcore/iter/traits/marker.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@
99
/// on the iterator. If the iterator is already fused, the additional [`Fuse`]
1010
/// wrapper will be a no-op with no performance penalty.
1111
///
12-
/// [`None`]: ../../std/option/enum.Option.html#variant.None
13-
/// [`Iterator::fuse`]: ../../std/iter/trait.Iterator.html#method.fuse
14-
/// [`Fuse`]: ../../std/iter/struct.Fuse.html
12+
/// [`Iterator::fuse`]: crate::iter::Iterator::fuse
13+
/// [`Fuse`]: crate::iter::Fuse
1514
#[stable(feature = "fused", since = "1.26.0")]
1615
#[rustc_unsafe_specialization_marker]
1716
pub trait FusedIterator: Iterator {}
@@ -35,9 +34,8 @@ impl<I: FusedIterator + ?Sized> FusedIterator for &mut I {}
3534
/// This trait must only be implemented when the contract is upheld.
3635
/// Consumers of this trait must inspect [`.size_hint`]’s upper bound.
3736
///
38-
/// [`None`]: ../../std/option/enum.Option.html#variant.None
39-
/// [`usize::MAX`]: ../../std/usize/constant.MAX.html
40-
/// [`.size_hint`]: ../../std/iter/trait.Iterator.html#method.size_hint
37+
/// [`usize::MAX`]: crate::usize::MAX
38+
/// [`.size_hint`]: crate::iter::Iterator::size_hint
4139
#[unstable(feature = "trusted_len", issue = "37572")]
4240
#[rustc_unsafe_specialization_marker]
4341
pub unsafe trait TrustedLen: Iterator {}

0 commit comments

Comments
 (0)