mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 14:52:56 +03: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:
@@ -213,7 +213,7 @@
|
||||
///
|
||||
/// # 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:
|
||||
///
|
||||
/// ```
|
||||
|
||||
Reference in New Issue
Block a user