Skip to content

Commit f3f4781

Browse files
authored
Rollup merge of rust-lang#75874 - pickfire:patch-3, r=jyn514
Shorten liballoc doc intra link while readable r? @jyn514 Do you want to reviews these sort of pull requests in the future? I might send a few of them while reading vec code.
2 parents 5d0b59a + bc7ea6f commit f3f4781

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

library/alloc/src/vec.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//!
1010
//! # Examples
1111
//!
12-
//! You can explicitly create a [`Vec<T>`] with [`new`]:
12+
//! You can explicitly create a [`Vec`] with [`Vec::new`]:
1313
//!
1414
//! ```
1515
//! let v: Vec<i32> = Vec::new();
@@ -50,8 +50,6 @@
5050
//! v[1] = v[1] + 5;
5151
//! ```
5252
//!
53-
//! [`Vec<T>`]: Vec
54-
//! [`new`]: Vec::new
5553
//! [`push`]: Vec::push
5654
5755
#![stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)