Skip to content

Commit b454734

Browse files
cjihrigevanlucas
authored andcommitted
doc: fix detached child stdio example
The example changed by this commit uses ['ignore'] where 'ignore' is intended. Fixes: #7269 PR-URL: #7540 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 657fd7a commit b454734

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
@@ -430,7 +430,7 @@ const spawn = require('child_process').spawn;
430430

431431
const child = spawn(process.argv[0], ['child_program.js'], {
432432
detached: true,
433-
stdio: ['ignore']
433+
stdio: 'ignore'
434434
});
435435

436436
child.unref();

0 commit comments

Comments
 (0)