mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
Rollup merge of #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.
This commit is contained in:
commit
75d6b109c2
@ -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")]
|
||||
|
Loading…
Reference in New Issue
Block a user