Fixed ch03-05-control-flow.md, replaced for with while#3757
Fixed ch03-05-control-flow.md, replaced for with while#3757Atabic wants to merge 2 commits intorust-lang:mainfrom
for with while#3757Conversation
|
Hi @carols10cents . Can you please review this whenever you get time? |
|
Please read that section again. It starts by explaining looping over a collection with the previously introduced |
|
@RafaelKr But the section under it explains all about how to loop over a collection using |
|
Yes, but it does it to explain why using a To be fair I read this very section the first time 2 hours ago and also wondered why it is labelled My suggestion is to update the wording of the first sentence instead: - You can choose to use the while construct to loop over the elements of a collection
+ You could choose to use the while construct to loop over the elements of a collectionSo changing |
|
Closing in favor of #3758. The heading order here is intentional, but that small wording tweak should help. Thanks! |

Hi team,
The section heading was Looping Through a Collection with for
and instead the explanation under it is about
while.Updated a link in ch12 which caused one of the job to fail