Skip to content

Commit 3a3e34e

Browse files
authored
concept/loops: fix typo (#886)
i is the counter for the module of 2, instead of n.
1 parent 98bd9ed commit 3a3e34e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

concepts/loops/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ In contrast, the keyword `continue` only stops the execution of the current iter
8484
```cpp
8585
int equal_sum{0};
8686
for (int i{1}; i < 7; ++i) {
87-
if (n%2 == 1) {
87+
if (i%2 == 1) {
8888
continue;
8989
}
9090
equal_sum += i;

0 commit comments

Comments
 (0)