diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2021-03-16 23:53:54 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-16 23:53:54 +0900 |
| commit | b6df781643ca82f4f183e6e0758ed6eeede1804c (patch) | |
| tree | 37d8f2cadabafa36baf3dff33c7ca19de2ad8610 | |
| parent | 62d38da9fab089520b0e10e71a54be0d30b0490a (diff) | |
| parent | 81d1d8259611f8ab6f83afe465ea21a5aa87bcc2 (diff) | |
| download | rust-b6df781643ca82f4f183e6e0758ed6eeede1804c.tar.gz rust-b6df781643ca82f4f183e6e0758ed6eeede1804c.zip | |
Rollup merge of #83072 - henryboisdequin:patch-1, r=Dylan-DPC
Update `Vec` docs Fix typos/nits in `Vec` docs
| -rw-r--r-- | library/alloc/src/vec/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs index 49758f672a8..9731a8e1d1d 100644 --- a/library/alloc/src/vec/mod.rs +++ b/library/alloc/src/vec/mod.rs @@ -126,7 +126,7 @@ use self::spec_extend::SpecExtend; 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 /// @@ -215,7 +215,7 @@ mod spec_extend; /// /// # 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: /// /// ``` @@ -352,7 +352,7 @@ mod spec_extend; /// 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 |
