Skip to content

Commit

Permalink
Merge pull request #1884 from nicholasshirley/master
Browse files Browse the repository at this point in the history
consistenly use increment and decrement
  • Loading branch information
carols10cents committed Mar 26, 2019
2 parents feeaff2 + 5179c2a commit eb66c9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ch03-05-control-flow.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ fn main() {
while number != 0 {
println!("{}!", number);

number = number - 1;
number -= 1;
}

println!("LIFTOFF!!!");
Expand Down Expand Up @@ -394,7 +394,7 @@ fn main() {
while index < 5 {
println!("the value is: {}", a[index]);

index = index + 1;
index += 1;
}
}
```
Expand Down

0 comments on commit eb66c9c

Please sign in to comment.