File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -334,9 +334,10 @@ impl<T> Vec<T> {
334
334
/// The vector will be able to hold exactly `capacity` elements without
335
335
/// reallocating. If `capacity` is 0, the vector will not allocate.
336
336
///
337
- /// It is important to note that this function does not specify the *length*
338
- /// of the returned vector, but only the *capacity*. For an explanation of
339
- /// the difference between length and capacity, see *[Capacity and reallocation]*.
337
+ /// It is important to note that although the returned vector has the
338
+ /// *capacity* specified, the vector will have a zero *length*. For an
339
+ /// explanation of the difference between length and capacity, see
340
+ /// *[Capacity and reallocation]*.
340
341
///
341
342
/// [Capacity and reallocation]: #capacity-and-reallocation
342
343
///
You can’t perform that action at this time.
0 commit comments