diff --git a/doc/api/child_process.md b/doc/api/child_process.md index 1a9436637e8f15..ab4c4cb0040560 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -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);