Merge pull request #3758 from RafaelKr/improve-control-flow-looping-wording

Improve ch03-05-control-flow collection looping wording
This commit is contained in:
Chris Krycho 2024-03-27 12:20:55 -06:00 committed by GitHub
commit 3a1137204c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,7 @@ evaluates to `true`, the code runs; otherwise, it exits the loop.
#### Looping Through a Collection with `for`
You can choose to use the `while` construct to loop over the elements of a
You can also use the `while` construct to loop over the elements of a
collection, such as an array. For example, the loop in Listing 3-4 prints each
element in the array `a`.