Skip to content

Commit bee9866

Browse files
committed
docs: @putout/plugin-remove-useless-continue: example
1 parent a8aee08 commit bee9866

File tree

1 file changed

+6
-3
lines changed
  • packages/plugin-remove-useless-continue

1 file changed

+6
-3
lines changed

packages/plugin-remove-useless-continue/README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,18 @@ npm i @putout/plugin-remove-useless-continue
2828
## ❌ Example of incorrect code
2929

3030
```js
31-
for (sign = decpt, i = 0; sign /= 10 !== 0; i++)
31+
for (sign = decpt, i = 0; sign /= 10 !== 0; i++) {
32+
console.log('hello');
3233
continue;
34+
}
3335
```
3436

3537
## ✅ Example of correct code
3638

3739
```js
38-
for (sign = decpt, i = 0; sign /= 10 !== 0; i++)
39-
;
40+
for (sign = decpt, i = 0; sign /= 10 !== 0; i++) {
41+
console.log('hello');
42+
}
4043
```
4144

4245
## License

0 commit comments

Comments
 (0)