We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents feeaff2 + 5179c2a commit eb66c9cCopy full SHA for eb66c9c
src/ch03-05-control-flow.md
@@ -365,7 +365,7 @@ fn main() {
365
while number != 0 {
366
println!("{}!", number);
367
368
- number = number - 1;
+ number -= 1;
369
}
370
371
println!("LIFTOFF!!!");
@@ -394,7 +394,7 @@ fn main() {
394
while index < 5 {
395
println!("the value is: {}", a[index]);
396
397
- index = index + 1;
+ index += 1;
398
399
400
```
0 commit comments