about summary refs log tree commit diff
path: root/library/alloc
diff options
context:
space:
mode:
authorIvan Tham <pickfire@riseup.net>2020-07-24 17:28:37 +0800
committerIvan Tham <pickfire@riseup.net>2020-08-14 10:52:09 +0800
commitd2ecfcf21dc6c9c2a136c8cfefe2b9f8af7ca549 (patch)
tree6a3b558440af83667080573b12a5fd7a8ea847ea /library/alloc
parente0d215ff9e6ab644b244518616f7979966220e79 (diff)
downloadrust-d2ecfcf21dc6c9c2a136c8cfefe2b9f8af7ca549.tar.gz
rust-d2ecfcf21dc6c9c2a136c8cfefe2b9f8af7ca549.zip
Update liballoc vec doc link
Diffstat (limited to 'library/alloc')
-rw-r--r--library/alloc/src/vec.rs11
1 files changed, 3 insertions, 8 deletions
diff --git a/library/alloc/src/vec.rs b/library/alloc/src/vec.rs
index d9f22be3ff6..15a01166a17 100644
--- a/library/alloc/src/vec.rs
+++ b/library/alloc/src/vec.rs
@@ -2620,7 +2620,6 @@ where
 ///
 /// This `struct` is created by the `into_iter` method on [`Vec`] (provided
 /// by the [`IntoIterator`] trait).
-///
 #[stable(feature = "rust1", since = "1.0.0")]
 pub struct IntoIter<T> {
     buf: NonNull<T>,
@@ -2800,9 +2799,7 @@ unsafe impl<#[may_dangle] T> Drop for IntoIter<T> {
 
 /// A draining iterator for `Vec<T>`.
 ///
-/// This `struct` is created by the [`drain`] method on [`Vec`].
-///
-/// [`drain`]: struct.Vec.html#method.drain
+/// This `struct` is created by [`Vec::drain`].
 #[stable(feature = "drain", since = "1.6.0")]
 pub struct Drain<'a, T: 'a> {
     /// Index of tail to preserve
@@ -2930,10 +2927,8 @@ impl<T> FusedIterator for Drain<'_, T> {}
 
 /// A splicing iterator for `Vec`.
 ///
-/// This struct is created by the [`splice()`] method on [`Vec`]. See its
-/// documentation for more.
-///
-/// [`splice()`]: struct.Vec.html#method.splice
+/// This struct is created by [`Vec::splice()`].
+/// See its documentation for more.
 #[derive(Debug)]
 #[stable(feature = "vec_splice", since = "1.21.0")]
 pub struct Splice<'a, I: Iterator + 'a> {