Skip to content

Commit 3b0e366

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

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
@@ -121,6 +121,9 @@ use crate::raw_vec::RawVec;
121121
/// assert_eq!(vec, [0, 0, 0, 0, 0]);
122122
/// ```
123123
///
124+
/// For more information, see
125+
/// [Capacity and Reallocation](#capacity-and-reallocation).
126+
///
124127
/// Use a `Vec<T>` as an efficient stack:
125128
///
126129
/// ```

0 commit comments

Comments
 (0)