Skip to content

Commit 7b823df

Browse files
committed
Link to #capacity-and-reallocation when using with_capacity
1 parent 08deb86 commit 7b823df

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
@@ -119,6 +119,9 @@ use crate::raw_vec::RawVec;
119119
/// assert_eq!(vec, [0, 0, 0, 0, 0]);
120120
/// ```
121121
///
122+
/// For more information, see
123+
/// [Capacity and Reallocation](#capacity-and-reallocation).
124+
///
122125
/// Use a `Vec<T>` as an efficient stack:
123126
///
124127
/// ```

0 commit comments

Comments
 (0)