Skip to content

Commit d2ecfcf

Browse files
committed
Update liballoc vec doc link
1 parent e0d215f commit d2ecfcf

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

library/alloc/src/vec.rs

+3-8
Original file line numberDiff line numberDiff line change
@@ -2620,7 +2620,6 @@ where
26202620
///
26212621
/// This `struct` is created by the `into_iter` method on [`Vec`] (provided
26222622
/// by the [`IntoIterator`] trait).
2623-
///
26242623
#[stable(feature = "rust1", since = "1.0.0")]
26252624
pub struct IntoIter<T> {
26262625
buf: NonNull<T>,
@@ -2800,9 +2799,7 @@ unsafe impl<#[may_dangle] T> Drop for IntoIter<T> {
28002799

28012800
/// A draining iterator for `Vec<T>`.
28022801
///
2803-
/// This `struct` is created by the [`drain`] method on [`Vec`].
2804-
///
2805-
/// [`drain`]: struct.Vec.html#method.drain
2802+
/// This `struct` is created by [`Vec::drain`].
28062803
#[stable(feature = "drain", since = "1.6.0")]
28072804
pub struct Drain<'a, T: 'a> {
28082805
/// Index of tail to preserve
@@ -2930,10 +2927,8 @@ impl<T> FusedIterator for Drain<'_, T> {}
29302927

29312928
/// A splicing iterator for `Vec`.
29322929
///
2933-
/// This struct is created by the [`splice()`] method on [`Vec`]. See its
2934-
/// documentation for more.
2935-
///
2936-
/// [`splice()`]: struct.Vec.html#method.splice
2930+
/// This struct is created by [`Vec::splice()`].
2931+
/// See its documentation for more.
29372932
#[derive(Debug)]
29382933
#[stable(feature = "vec_splice", since = "1.21.0")]
29392934
pub struct Splice<'a, I: Iterator + 'a> {

0 commit comments

Comments
 (0)