From 03611fc8614f694415d94f9bece110c94e296165 Mon Sep 17 00:00:00 2001 From: Tom Godkin Date: Wed, 20 Feb 2019 14:55:30 +0000 Subject: [PATCH] Consistently use indices over indexes Most the the book pluralises index as indices, except in one place where it is pluralised as indexes. This chooses the more common "indices". --- src/ch08-01-vectors.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch08-01-vectors.md b/src/ch08-01-vectors.md index 085e81009..a38d157e8 100644 --- a/src/ch08-01-vectors.md +++ b/src/ch08-01-vectors.md @@ -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.