Skip to content

Commit c92f814

Browse files
the8472cuviper
andcommitted
Apply suggestions from code review
Co-authored-by: Josh Stone <[email protected]>
1 parent b875fd0 commit c92f814

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/alloc/src/vec/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -2788,7 +2788,7 @@ impl<T, I: SliceIndex<[T]>, A: Allocator> IndexMut<I> for Vec<T, A> {
27882788
///
27892789
/// # Allocation behavior
27902790
///
2791-
/// In general `Vec` does not guarantee any particular grow/allocation stategy.
2791+
/// In general `Vec` does not guarantee any particular growth or allocation strategy.
27922792
/// That also applies to this trait impl.
27932793
///
27942794
/// **Note:** This section covers implementation details and is therefore exempt from
@@ -2809,9 +2809,9 @@ impl<T, I: SliceIndex<[T]>, A: Allocator> IndexMut<I> for Vec<T, A> {
28092809
/// this can lead to the large allocations having their lifetimes unnecessarily extended which
28102810
/// can result in increased memory footprint.
28112811
///
2812-
/// In cases where this is an issue the excess capacity can be discard with [`Vec::shrink_to()`],
2813-
/// [`Vec::shrink_to_fit()`] or by collecting into [`Box<[T]>`][owned slice] instead which additionally reduces
2814-
/// the size of the longlived struct.
2812+
/// In cases where this is an issue, the excess capacity can be discarded with [`Vec::shrink_to()`],
2813+
/// [`Vec::shrink_to_fit()`] or by collecting into [`Box<[T]>`][owned slice] instead, which additionally reduces
2814+
/// the size of the long-lived struct.
28152815
///
28162816
/// [owned slice]: Box
28172817
///

0 commit comments

Comments
 (0)