We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97105ff commit 8e74d64Copy full SHA for 8e74d64
library/alloc/src/vec/mod.rs
@@ -364,7 +364,7 @@ mod spec_extend;
364
/// It is guaranteed that the [`Vec::capacity`] method returns a value that is at least the requested capacity
365
/// and not more than the allocated capacity.
366
///
367
-/// The method [`Vec::shrink_to_fit`] can discard excess capacity an allocator has given to a `Vec`.
+/// The method [`Vec::shrink_to_fit`] will attempt to discard excess capacity an allocator has given to a `Vec`.
368
/// If <code>[len] == [capacity]</code>, then a `Vec<T>` can be converted
369
/// to and from a [`Box<[T]>`][owned slice] without reallocating or moving the elements.
370
/// `Vec` exploits this fact as much as reasonable when implementing common conversions
0 commit comments