diff options
| author | Ivan Tham <pickfire@riseup.net> | 2020-08-24 20:02:02 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-24 20:02:02 +0800 |
| commit | bc7ea6f52eff4cac0f646f08b576edbf51319ec1 (patch) | |
| tree | a07eb4f62dc8fffbc60418d71fd3edb87c3ed937 | |
| parent | 9d7456243244141808b39ee8ed32767a7a1dc7d7 (diff) | |
| download | rust-bc7ea6f52eff4cac0f646f08b576edbf51319ec1.tar.gz rust-bc7ea6f52eff4cac0f646f08b576edbf51319ec1.zip | |
Shorten liballoc doc intra link while readable
| -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 058a06e1326..3adeaf41034 100644 --- a/library/alloc/src/vec.rs +++ b/library/alloc/src/vec.rs @@ -9,7 +9,7 @@ //! //! # Examples //! -//! You can explicitly create a [`Vec<T>`] with [`new`]: +//! You can explicitly create a [`Vec`] with [`Vec::new`]: //! //! ``` //! let v: Vec<i32> = Vec::new(); @@ -50,8 +50,6 @@ //! v[1] = v[1] + 5; //! ``` //! -//! [`Vec<T>`]: Vec -//! [`new`]: Vec::new //! [`push`]: Vec::push #![stable(feature = "rust1", since = "1.0.0")] |
