mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
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.
This commit is contained in:
commit
de6caffe3a
@ -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