about summary refs log tree commit diff
diff options
context:
space:
mode:
authorIvan Tham <pickfire@riseup.net>2020-08-24 20:02:02 +0800
committerGitHub <noreply@github.com>2020-08-24 20:02:02 +0800
commitbc7ea6f52eff4cac0f646f08b576edbf51319ec1 (patch)
treea07eb4f62dc8fffbc60418d71fd3edb87c3ed937
parent9d7456243244141808b39ee8ed32767a7a1dc7d7 (diff)
downloadrust-bc7ea6f52eff4cac0f646f08b576edbf51319ec1.tar.gz
rust-bc7ea6f52eff4cac0f646f08b576edbf51319ec1.zip
Shorten liballoc doc intra link while readable
-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 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")]