mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
Rollup merge of #76303 - jyn514:vec-assert-doc, r=Dylan-DPC
Link to `#capacity-and-reallocation` when using with_capacity Follow up to https://github.com/rust-lang/rust/pull/76058#discussion_r479655750. r? @pickfire
This commit is contained in:
commit
5b8f76d564
@ -120,6 +120,9 @@ use crate::raw_vec::RawVec;
|
|||||||
/// assert_eq!(vec, [0, 0, 0, 0, 0]);
|
/// assert_eq!(vec, [0, 0, 0, 0, 0]);
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
|
/// For more information, see
|
||||||
|
/// [Capacity and Reallocation](#capacity-and-reallocation).
|
||||||
|
///
|
||||||
/// Use a `Vec<T>` as an efficient stack:
|
/// Use a `Vec<T>` as an efficient stack:
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
|
Loading…
Reference in New Issue
Block a user