]> git.lizzy.rs Git - rust.git/commitdiff
Update `Vec` docs
authorHenry Boisdequin <boisdequinhenry19@gmail.com>
Sat, 13 Mar 2021 02:28:03 +0000 (07:58 +0530)
committerGitHub <noreply@github.com>
Sat, 13 Mar 2021 02:28:03 +0000 (07:58 +0530)
library/alloc/src/vec/mod.rs

index 0028e290fac4edb40b9118977710e48903146555..f59e363e17561298e0e2e2848622f92160c506f7 100644 (file)
 
 mod spec_extend;
 
-/// A contiguous growable array type, written `Vec<T>` but pronounced 'vector'.
+/// A contiguous growable array type, written as `Vec<T>` and pronounced 'vector'.
 ///
 /// # Examples
 ///
 ///
 /// # Slicing
 ///
-/// A `Vec` can be mutable. Slices, on the other hand, are read-only objects.
+/// A `Vec` can be mutable. On the other hand, slices are read-only objects.
 /// To get a [slice][prim@slice], use [`&`]. Example:
 ///
 /// ```
 /// not break, however: using `unsafe` code to write to the excess capacity,
 /// and then increasing the length to match, is always valid.
 ///
-/// `Vec` does not currently guarantee the order in which elements are dropped.
+/// Currently, `Vec` does not guarantee the order in which elements are dropped.
 /// The order has changed in the past and may change again.
 ///
 /// [`get`]: ../../std/vec/struct.Vec.html#method.get