Skip to content

Commit

Permalink
Consistently use indices over indexes
Browse files Browse the repository at this point in the history
Most the the book pluralises index as indices, except in one place where
it is pluralised as indexes. This chooses the more common "indices".
  • Loading branch information
Tom Godkin committed Feb 20, 2019
1 parent 540f308 commit 03611fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ch08-01-vectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ programs from ending up in that situation.
### Iterating over the Values in a Vector

If we want to access each element in a vector in turn, we can iterate through
all of the elements rather than use indexes to access one at a time. Listing
all of the elements rather than use indices to access one at a time. Listing
8-8 shows how to use a `for` loop to get immutable references to each element
in a vector of `i32` values and print them.

Expand Down

0 comments on commit 03611fc

Please sign in to comment.