Skip to content

Commit b6df781

Browse files
authored
Rollup merge of #83072 - henryboisdequin:patch-1, r=Dylan-DPC
Update `Vec` docs Fix typos/nits in `Vec` docs
2 parents 62d38da + 81d1d82 commit b6df781

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/alloc/src/vec/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ use self::spec_extend::SpecExtend;
126126

127127
mod spec_extend;
128128

129-
/// A contiguous growable array type, written `Vec<T>` but pronounced 'vector'.
129+
/// A contiguous growable array type, written as `Vec<T>` and pronounced 'vector'.
130130
///
131131
/// # Examples
132132
///
@@ -215,7 +215,7 @@ mod spec_extend;
215215
///
216216
/// # Slicing
217217
///
218-
/// A `Vec` can be mutable. Slices, on the other hand, are read-only objects.
218+
/// A `Vec` can be mutable. On the other hand, slices are read-only objects.
219219
/// To get a [slice][prim@slice], use [`&`]. Example:
220220
///
221221
/// ```
@@ -352,7 +352,7 @@ mod spec_extend;
352352
/// not break, however: using `unsafe` code to write to the excess capacity,
353353
/// and then increasing the length to match, is always valid.
354354
///
355-
/// `Vec` does not currently guarantee the order in which elements are dropped.
355+
/// Currently, `Vec` does not guarantee the order in which elements are dropped.
356356
/// The order has changed in the past and may change again.
357357
///
358358
/// [`get`]: ../../std/vec/struct.Vec.html#method.get

0 commit comments

Comments
 (0)