Skip to content

Commit 1e6c250

Browse files
Shankar Loharvaeng
andauthored
feat add missing semi-colons in 'interest-is-interesting' (#739)
---- Co-authored-by: vaeng <[email protected]>
1 parent dd9299d commit 1e6c250

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

concepts/loops/about.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ int c{a++};
5757
The init component usually sets up a counter variable, the condition checks whether the loop should be continued or stopped and the post component usually increments the counter at the end of each repetition.
5858
5959
```cpp
60-
int sum{0}
60+
int sum{0};
6161
for (int i{1}; i < 10; ++i) {
6262
sum += i;
6363
}
@@ -91,4 +91,4 @@ for (int i{1}; i < 7; ++i) {
9191
}
9292
// equal_sum is now 12
9393
```
94-
> Note: it is usually easier to understand the logic of the loop, when the use of `break` and `continue` is minimized or entirely avoided.
94+
> Note: it is usually easier to understand the logic of the loop, when the use of `break` and `continue` is minimized or entirely avoided.

concepts/loops/introduction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ int c{a++};
5757
The init component usually sets up a counter variable, the condition checks whether the loop should be continued or stopped and the post component usually increments the counter at the end of each repetition.
5858
5959
```cpp
60-
int sum{0}
60+
int sum{0};
6161
for (int i{1}; i < 10; ++i) {
6262
sum += i;
6363
}
@@ -91,4 +91,4 @@ for (int i{1}; i < 7; ++i) {
9191
}
9292
// equal_sum is now 12
9393
```
94-
> Note: it is usually easier to understand the logic of the loop, when the use of `break` and `continue` is minimized or entirely avoided.
94+
> Note: it is usually easier to understand the logic of the loop, when the use of `break` and `continue` is minimized or entirely avoided.

exercises/concept/interest-is-interesting/.docs/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ int c{a++};
5757
The _init component_ usually sets up a counter variable, the _condition_ checks whether the loop should be continued or stopped and the _post component_ usually increments the counter at the end of each repetition.
5858
5959
```cpp
60-
int sum{0}
60+
int sum{0};
6161
for (int i{1}; i < 10; ++i) {
6262
sum += i;
6363
}

0 commit comments

Comments
 (0)