From 84b353cf5d5895a50d63b6ab81c5c85306f8c425 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 PR-URL: https://github.com/nodejs/node/pull/29621 Reviewed-By: David Carlier Reviewed-By: Trivikram Kamat Reviewed-By: Luigi Pinca --- 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);