diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-09-07 01:17:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-07 01:17:56 +0200 |
| commit | 5b8f76d564ac7bacb604d364ada044f289992ddf (patch) | |
| tree | 5beff1374223695cc0209c396ffa5bc46ebe591e | |
| parent | ee840db718d7c59fb13b44f1f6cfeed6ad1f4d3f (diff) | |
| parent | 7b823df489e89d0ba3f6acd1cb788d3d8fbbf1e7 (diff) | |
| download | rust-5b8f76d564ac7bacb604d364ada044f289992ddf.tar.gz rust-5b8f76d564ac7bacb604d364ada044f289992ddf.zip | |
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
| -rw-r--r-- | library/alloc/src/vec.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/library/alloc/src/vec.rs b/library/alloc/src/vec.rs index 011ea32d0cf..eba7ffae22c 100644 --- a/library/alloc/src/vec.rs +++ b/library/alloc/src/vec.rs @@ -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: /// /// ``` |
