Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing semi-colon in 'interest-is-interesting' tutorial added #739

Merged
merged 5 commits into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions concepts/loops/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ int c{a++};
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.

```cpp
int sum{0}
int sum{0};
for (int i{1}; i < 10; ++i) {
sum += i;
}
Expand Down Expand Up @@ -91,4 +91,4 @@ for (int i{1}; i < 7; ++i) {
}
// equal_sum is now 12
```
> Note: it is usually easier to understand the logic of the loop, when the use of `break` and `continue` is minimized or entirely avoided.
> Note: it is usually easier to understand the logic of the loop, when the use of `break` and `continue` is minimized or entirely avoided.
4 changes: 2 additions & 2 deletions concepts/loops/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ int c{a++};
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.

```cpp
int sum{0}
int sum{0};
for (int i{1}; i < 10; ++i) {
sum += i;
}
Expand Down Expand Up @@ -91,4 +91,4 @@ for (int i{1}; i < 7; ++i) {
}
// equal_sum is now 12
```
> Note: it is usually easier to understand the logic of the loop, when the use of `break` and `continue` is minimized or entirely avoided.
> Note: it is usually easier to understand the logic of the loop, when the use of `break` and `continue` is minimized or entirely avoided.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ int c{a++};
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.

```cpp
int sum{0}
int sum{0};
for (int i{1}; i < 10; ++i) {
sum += i;
}
Expand Down