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
Dylan-DPC authored Sep 6, 2020
2 parents f06c59e + 7b823df commit 7d9d348
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 7d9d348

Please sign in to comment.