Skip to content

Commit 3111a8c

Browse files
authored
Rollup merge of #74185 - pickfire:liballoc-iter-doc, r=jyn514
Remove liballoc unneeded explicit link
2 parents fba3989 + d2ecfcf commit 3111a8c

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

library/alloc/src/vec.rs

+3-12
Original file line numberDiff line numberDiff line change
@@ -2620,9 +2620,6 @@ where
26202620
///
26212621
/// This `struct` is created by the `into_iter` method on [`Vec`] (provided
26222622
/// by the [`IntoIterator`] trait).
2623-
///
2624-
/// [`Vec`]: struct.Vec.html
2625-
/// [`IntoIterator`]: ../../std/iter/trait.IntoIterator.html
26262623
#[stable(feature = "rust1", since = "1.0.0")]
26272624
pub struct IntoIter<T> {
26282625
buf: NonNull<T>,
@@ -2802,10 +2799,7 @@ unsafe impl<#[may_dangle] T> Drop for IntoIter<T> {
28022799

28032800
/// A draining iterator for `Vec<T>`.
28042801
///
2805-
/// This `struct` is created by the [`drain`] method on [`Vec`].
2806-
///
2807-
/// [`drain`]: struct.Vec.html#method.drain
2808-
/// [`Vec`]: struct.Vec.html
2802+
/// This `struct` is created by [`Vec::drain`].
28092803
#[stable(feature = "drain", since = "1.6.0")]
28102804
pub struct Drain<'a, T: 'a> {
28112805
/// Index of tail to preserve
@@ -2933,11 +2927,8 @@ impl<T> FusedIterator for Drain<'_, T> {}
29332927

29342928
/// A splicing iterator for `Vec`.
29352929
///
2936-
/// This struct is created by the [`splice()`] method on [`Vec`]. See its
2937-
/// documentation for more.
2938-
///
2939-
/// [`splice()`]: struct.Vec.html#method.splice
2940-
/// [`Vec`]: struct.Vec.html
2930+
/// This struct is created by [`Vec::splice()`].
2931+
/// See its documentation for more.
29412932
#[derive(Debug)]
29422933
#[stable(feature = "vec_splice", since = "1.21.0")]
29432934
pub struct Splice<'a, I: Iterator + 'a> {

0 commit comments

Comments
 (0)