Skip to content

Commit 5b8f76d

Browse files
authored
Rollup merge of #76303 - jyn514:vec-assert-doc, r=Dylan-DPC
Link to `#capacity-and-reallocation` when using with_capacity Follow up to #76058 (comment). r? @pickfire
2 parents ee840db + 7b823df commit 5b8f76d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/alloc/src/vec.rs

+3
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ use crate::raw_vec::RawVec;
120120
/// assert_eq!(vec, [0, 0, 0, 0, 0]);
121121
/// ```
122122
///
123+
/// For more information, see
124+
/// [Capacity and Reallocation](#capacity-and-reallocation).
125+
///
123126
/// Use a `Vec<T>` as an efficient stack:
124127
///
125128
/// ```

0 commit comments

Comments
 (0)