Skip to content

Commit

Permalink
doc: fix require call for spawn() in code example
Browse files Browse the repository at this point in the history
PR-URL: #29621
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
marian-r authored and BridgeAR committed Sep 25, 2019
1 parent 39b1770 commit 84b353c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/child_process.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ bat.on('exit', (code) => {

```js
// OR...
const { exec } = require('child_process');
const { exec, spawn } = require('child_process');
exec('my.bat', (err, stdout, stderr) => {
if (err) {
console.error(err);
Expand Down

0 comments on commit 84b353c

Please sign in to comment.