diff options
| author | Ryan O'Neill <ryanoneill@gmail.com> | 2023-07-29 13:20:45 -0700 |
|---|---|---|
| committer | Ryan O'Neill <ryanoneill@gmail.com> | 2023-07-29 13:20:45 -0700 |
| commit | 9a01a23b9c7e9edd171bb86a1e27945cd37c9e4c (patch) | |
| tree | e0243645905c7786019e67a607a5b344c5a2b92b /library/alloc/src | |
| parent | a04e649c09183b35ac0309266468c037396b6b88 (diff) | |
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/src')
| -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: /// /// ``` |
