Skip to content

Commit 6139cdb

Browse files
Merge pull request #2816 from meow464/patch-1
Fixes typo
2 parents 7e49659 + 4b86611 commit 6139cdb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ch03-05-control-flow.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,9 +352,9 @@ index < 4`, the code would panic. Using the `for` loop, you wouldn’t need to
352352
remember to change any other code if you changed the number of values in the
353353
array.
354354

355-
The safety and conciseness of `for` loops make them the most commonly used loop
356-
construct in Rust. Even in situations in which you want to run some code a
357-
certain number of times, as in the countdown example that used a `while` loop
355+
The safety and conciseness of `for` loops makes them the most commonly used
356+
loop construct in Rust. Even in situations in which you want to run some code
357+
a certain number of times, as in the countdown example that used a `while` loop
358358
in Listing 3-3, most Rustaceans would use a `for` loop. The way to do that
359359
would be to use a `Range`, which is a type provided by the standard library
360360
that generates all numbers in sequence starting from one number and ending

0 commit comments

Comments
 (0)