Skip to content

Commit c468672

Browse files
authored
[docs] Transforms: Summary: Fix example command and output. (#1206)
1 parent a31fe55 commit c468672

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/transform.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ const transform = function * (line) {
1818
yield `${prefix}: ${line}`;
1919
};
2020

21-
const {stdout} = await execa({stdout: transform})`npm run build`;
22-
console.log(stdout); // HELLO
21+
const {stdout} = await execa({stdout: transform})`echo HELLO`;
22+
console.log(stdout); // INFO: HELLO
2323
```
2424

2525
## Difference with iteration

0 commit comments

Comments
 (0)