Skip to content

Commit 84b353c

Browse files
marian-rBridgeAR
authored andcommitted
doc: fix require call for spawn() in code example
PR-URL: #29621 Reviewed-By: David Carlier <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 39b1770 commit 84b353c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/child_process.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ bat.on('exit', (code) => {
112112

113113
```js
114114
// OR...
115-
const { exec } = require('child_process');
115+
const { exec, spawn } = require('child_process');
116116
exec('my.bat', (err, stdout, stderr) => {
117117
if (err) {
118118
console.error(err);

0 commit comments

Comments
 (0)