diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2020-09-03 18:08:25 -0400 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2020-09-03 18:08:25 -0400 |
| commit | 7b823df489e89d0ba3f6acd1cb788d3d8fbbf1e7 (patch) | |
| tree | b254019a4e1f8766852fdcdde48c4daf23578616 | |
| parent | 08deb863bdebfcbbb71c18acf903eca84f1df4e7 (diff) | |
| download | rust-7b823df489e89d0ba3f6acd1cb788d3d8fbbf1e7.tar.gz rust-7b823df489e89d0ba3f6acd1cb788d3d8fbbf1e7.zip | |
Link to `#capacity-and-reallocation` when using with_capacity
| -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 27eefb05842..a9215eb2dbc 100644 --- a/library/alloc/src/vec.rs +++ b/library/alloc/src/vec.rs @@ -119,6 +119,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: /// /// ``` |
