about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAleksey Kladov <aleksey.kladov@gmail.com>2020-08-31 12:51:53 +0200
committerGitHub <noreply@github.com>2020-08-31 12:51:53 +0200
commit13c4f045613fc5c1790702d807ae11850a27e6b2 (patch)
tree1b2b629dedc1695782381c69d47969552ed047ce
parentd829a5bcb147ddc1d2778154a36c454687766162 (diff)
parent237c5005d65b28ea135821b2e0e7c66cf2cefa4c (diff)
downloadrust-13c4f045613fc5c1790702d807ae11850a27e6b2.tar.gz
rust-13c4f045613fc5c1790702d807ae11850a27e6b2.zip
Rollup merge of #76069 - pickfire:patch-16, r=jyn514
Use explicit intra-doc link in path for Vec resize

r? @jyn514
-rw-r--r--library/alloc/src/vec.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/library/alloc/src/vec.rs b/library/alloc/src/vec.rs
index 2ad665f99c9..c86798a1bd3 100644
--- a/library/alloc/src/vec.rs
+++ b/library/alloc/src/vec.rs
@@ -1566,7 +1566,7 @@ impl<T: Clone> Vec<T> {
     /// This method requires `T` to implement [`Clone`],
     /// in order to be able to clone the passed value.
     /// If you need more flexibility (or want to rely on [`Default`] instead of
-    /// [`Clone`]), use [`resize_with`].
+    /// [`Clone`]), use [`Vec::resize_with`].
     ///
     /// # Examples
     ///
@@ -1579,8 +1579,6 @@ impl<T: Clone> Vec<T> {
     /// vec.resize(2, 0);
     /// assert_eq!(vec, [1, 2]);
     /// ```
-    ///
-    /// [`resize_with`]: Vec::resize_with
     #[stable(feature = "vec_resize", since = "1.5.0")]
     pub fn resize(&mut self, new_len: usize, value: T) {
         let len = self.len();