Skip to content

Commit

Permalink
docs: Make no-continue example code work (#17643)
Browse files Browse the repository at this point in the history
Update no-continue.md

make code works without errors
  • Loading branch information
zhouzhongyuan committed Oct 11, 2023
1 parent 9fafe45 commit 61b9083
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/src/rules/no-continue.md
Expand Up @@ -15,7 +15,7 @@ for(i = 0; i < 10; i++) {
continue;
}

a += i;
sum += i;
}
```

Expand All @@ -38,7 +38,7 @@ for(i = 0; i < 10; i++) {
continue;
}

a += i;
sum += i;
}
```

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

a += i;
sum += i;
}
```

Expand All @@ -75,7 +75,7 @@ var sum = 0,

for(i = 0; i < 10; i++) {
if(i < 5) {
a += i;
sum += i;
}
}
```
Expand Down

0 comments on commit 61b9083

Please sign in to comment.