From 4b86611b0e63151f6e166edc9ecf870d553e1f09 Mon Sep 17 00:00:00 2001 From: meow464 <70211708+meow464@users.noreply.github.com> Date: Sat, 7 Aug 2021 02:30:08 +0000 Subject: [PATCH] Fixes typo --- src/ch03-05-control-flow.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ch03-05-control-flow.md b/src/ch03-05-control-flow.md index 88385585df..8d0b840504 100644 --- a/src/ch03-05-control-flow.md +++ b/src/ch03-05-control-flow.md @@ -352,9 +352,9 @@ index < 4`, the code would panic. Using the `for` loop, you wouldn’t need to remember to change any other code if you changed the number of values in the array. -The safety and conciseness of `for` loops make them the most commonly used loop -construct in Rust. Even in situations in which you want to run some code a -certain number of times, as in the countdown example that used a `while` loop +The safety and conciseness of `for` loops makes them the most commonly used +loop construct in Rust. Even in situations in which you want to run some code +a certain number of times, as in the countdown example that used a `while` loop in Listing 3-3, most Rustaceans would use a `for` loop. The way to do that would be to use a `Range`, which is a type provided by the standard library that generates all numbers in sequence starting from one number and ending