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
+1 -1
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`.