diff options
| author | Ivan Tham <pickfire@riseup.net> | 2020-08-29 20:40:05 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-29 20:40:05 +0800 |
| commit | 237c5005d65b28ea135821b2e0e7c66cf2cefa4c (patch) | |
| tree | da9628f0fcd3f06048b5306de968ea6dcd61a464 | |
| parent | 65d071eeb52eba78896dd09b95a80c647ef150e9 (diff) | |
| download | rust-237c5005d65b28ea135821b2e0e7c66cf2cefa4c.tar.gz rust-237c5005d65b28ea135821b2e0e7c66cf2cefa4c.zip | |
Use explicit intra-doc link in path for Vec resize
| -rw-r--r-- | library/alloc/src/vec.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/library/alloc/src/vec.rs b/library/alloc/src/vec.rs index b4ad238680f..2644ec7f6d9 100644 --- a/library/alloc/src/vec.rs +++ b/library/alloc/src/vec.rs @@ -1567,7 +1567,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 /// @@ -1580,8 +1580,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(); |
