book icon indicating copy to clipboard operation
book copied to clipboard

Improve ch03-05-control-flow collection looping wording

Open RafaelKr opened this issue 2 years ago • 0 comments
trafficstars

This makes it clearer, that you COULD use a while loop to loop a collection, but a for loop is the preferred way

When reading the section "Looping Through a Collection with for" for the first time this morning I was confused it starts with "You can choose to use the while construct to loop over the elements of a collection..." For me it cleared up when reading further.

But also #3757 was created by @Atabic today who also got confused by this. So I think the wording may be improved by using "could" instead of "can".

RafaelKr avatar Oct 27 '23 12:10 RafaelKr