Skip to content

Commit 61b9083

Browse files
docs: Make no-continue example code work (#17643)
Update no-continue.md make code works without errors
1 parent 9fafe45 commit 61b9083

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/src/rules/no-continue.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ for(i = 0; i < 10; i++) {
1515
continue;
1616
}
1717

18-
a += i;
18+
sum += i;
1919
}
2020
```
2121

@@ -38,7 +38,7 @@ for(i = 0; i < 10; i++) {
3838
continue;
3939
}
4040

41-
a += i;
41+
sum += i;
4242
}
4343
```
4444

@@ -57,7 +57,7 @@ labeledLoop: for(i = 0; i < 10; i++) {
5757
continue labeledLoop;
5858
}
5959

60-
a += i;
60+
sum += i;
6161
}
6262
```
6363

@@ -75,7 +75,7 @@ var sum = 0,
7575

7676
for(i = 0; i < 10; i++) {
7777
if(i < 5) {
78-
a += i;
78+
sum += i;
7979
}
8080
}
8181
```

0 commit comments

Comments
 (0)