diff --git a/library/alloc/src/vec.rs b/library/alloc/src/vec.rs index 2ad665f99c9a5..c86798a1bd3a5 100644 --- a/library/alloc/src/vec.rs +++ b/library/alloc/src/vec.rs @@ -1566,7 +1566,7 @@ impl Vec { /// 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 Vec { /// 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();