diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-07-30 14:25:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-30 14:25:10 +0200 |
| commit | de6caffe3aee75acdbfa9c7ba95773743ee8780c (patch) | |
| tree | 80fb223bdea26dec6d097dfe63369509e0218d5c /library/alloc | |
| parent | a964f948d59c8949a8c1ea4282c446004bfe8b8b (diff) | |
| parent | 9a01a23b9c7e9edd171bb86a1e27945cd37c9e4c (diff) | |
| download | rust-de6caffe3aee75acdbfa9c7ba95773743ee8780c.tar.gz rust-de6caffe3aee75acdbfa9c7ba95773743ee8780c.zip | |
Rollup merge of #114223 - ryanoneill:vec-indexing-doc-language, r=workingjubilee
Documentation: Fix Stilted Language in Vec->Indexing Problem Language in the Vec->Indexing documentation sounds stilted due to incorrect word ordering: "... type allows to access values by index." Solution Reorder words in the Vec->Indexing documentation to flow better: "... type allows access to values by index." The phrase "allows access to" also matches other existing documentation.
Diffstat (limited to 'library/alloc')
| -rw-r--r-- | library/alloc/src/vec/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs index 1b24c637550..e45ddc7896b 100644 --- a/library/alloc/src/vec/mod.rs +++ b/library/alloc/src/vec/mod.rs @@ -213,7 +213,7 @@ mod spec_extend; /// /// # Indexing /// -/// The `Vec` type allows to access values by index, because it implements the +/// The `Vec` type allows access to values by index, because it implements the /// [`Index`] trait. An example will be more explicit: /// /// ``` |
