Fix a typo

This commit is contained in:
Yoshito Komatsu 2016-08-18 07:33:01 +00:00
parent 99421b09da
commit 334a040a1b
2 changed files with 2 additions and 2 deletions

View File

@ -1209,7 +1209,7 @@ This gets rid of a lot of nesting that would be necessary if we used `loop`,
`if`, `else`, and `break`, and it's more clear. While a condition holds, run
this code; otherwise, exit the loop.
#### Looping Though a Collection with `for`
#### Looping Through a Collection with `for`
We could use this `while` construct to loop over the elements of a collection,
like an array. For example:

View File

@ -314,7 +314,7 @@ This gets rid of a lot of nesting that would be necessary if we used `loop`,
`if`, `else`, and `break`, and it's more clear. While a condition holds, run
this code; otherwise, exit the loop.
#### Looping Though a Collection with `for`
#### Looping Through a Collection with `for`
We could use this `while` construct to loop over the elements of a collection,
like an array. For example: