From 1b840b545a30fa76692d305114911cb647b76ccf Mon Sep 17 00:00:00 2001 From: Marian Rusnak <4215517+marian-r@users.noreply.github.com> Date: Thu, 19 Sep 2019 22:49:55 +0100 Subject: [PATCH] doc: fix require call for spawn() in code example --- doc/api/child_process.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);