Skip to content

Commit

Permalink
Rollup merge of rust-lang#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 rust-lang#76058 (comment).
r? @pickfire
  • Loading branch information
matklad authored Sep 4, 2020
2 parents c40f193 + 7b823df commit 3b0e366
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 @@ -121,6 +121,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 3b0e366

Please sign in to comment.