Skip to content

Commit 8115329

Browse files
authored
docs: @putout/plugin-conditions: wrap-with-block: example
Updated examples in README.md to correct variable usage.
1 parent 9032c9a commit 8115329

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

packages/plugin-conditions/README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -520,17 +520,16 @@ Checkout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/256b1b6a90
520520
521521
### ❌ Example of incorrect code
522522
523-
```js
524-
const a = 5;
525-
526-
if (a) {}
523+
```
524+
if (a)
525+
const b = 5;
527526
```
528527
529528
### ✅ Example of correct code
530529
531530
```js
532531
if (a) {
533-
const a = 5;
532+
const b = 5;
534533
}
535534
```
536535

0 commit comments

Comments
 (0)