mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
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.
This commit is contained in:
parent
a04e649c09
commit
9a01a23b9c
@ -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:
|
||||
///
|
||||
/// ```
|
||||
|
Loading…
Reference in New Issue
Block a user