Skip to content

Commit 186af29

Browse files
cjihrigMyles Borins
authored and
Myles Borins
committed
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 8273824 commit 186af29

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

415415
const child = spawn(process.argv[0], ['child_program.js'], {
416416
detached: true,
417-
stdio: ['ignore']
417+
stdio: 'ignore'
418418
});
419419

420420
child.unref();

0 commit comments

Comments
 (0)