Skip to content

Commit

Permalink
Rollup merge of #76303 - jyn514:vec-assert-doc, r=Dylan-DPC
Browse files Browse the repository at this point in the history
Link to `#capacity-and-reallocation` when using with_capacity

Follow up to #76058 (comment).
r? @pickfire
  • Loading branch information
Dylan-DPC authored Sep 6, 2020
2 parents ee840db + 7b823df commit 5b8f76d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/alloc/src/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ use crate::raw_vec::RawVec;
/// 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:
///
/// ```
Expand Down

0 comments on commit 5b8f76d

Please sign in to comment.