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 targos committed Sep 23, 2019
1 parent 15191a6 commit 34e0623
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 34e0623

Please sign in to comment.