Skip to content

Commit 8612c1e

Browse files
authored
docs: @putout/plugin-convert-expression-to-params: example
Updated README.md to correct examples of code.
1 parent b8c4307 commit 8612c1e

File tree

1 file changed

+4
-4
lines changed
  • packages/plugin-convert-expression-to-params

1 file changed

+4
-4
lines changed

packages/plugin-convert-expression-to-params/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ npm i @putout/plugin-convert-expression-to-params -D
2828

2929
## ❌ Example of incorrect code
3030

31-
```js
32-
(__a, __b) => __b + __a;
33-
(__a, __b) => __b + __a;
34-
(__a, hello, world) => __a;
31+
```
32+
(__a(hello, world)) => (__b + __a);
33+
(__a + __b) => (__b + __a);
34+
(__a || __b) => (__b + __a);
3535
```
3636

3737
## ✅ Example of correct code

0 commit comments

Comments
 (0)