Skip to content

Commit 8e74d64

Browse files
Update library/alloc/src/vec/mod.rs
Co-authored-by: Jubilee <[email protected]>
1 parent 97105ff commit 8e74d64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/vec/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ mod spec_extend;
364364
/// It is guaranteed that the [`Vec::capacity`] method returns a value that is at least the requested capacity
365365
/// and not more than the allocated capacity.
366366
///
367-
/// The method [`Vec::shrink_to_fit`] can discard excess capacity an allocator has given to a `Vec`.
367+
/// The method [`Vec::shrink_to_fit`] will attempt to discard excess capacity an allocator has given to a `Vec`.
368368
/// If <code>[len] == [capacity]</code>, then a `Vec<T>` can be converted
369369
/// to and from a [`Box<[T]>`][owned slice] without reallocating or moving the elements.
370370
/// `Vec` exploits this fact as much as reasonable when implementing common conversions

0 commit comments

Comments
 (0)