From c3a997038c0e0c94801a6774bb2d374b7e981894 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Wed, 6 Dec 2017 21:15:39 -0800 Subject: doc: improve text for Console constructor Make text for Console constructor more precise. PR-URL: https://github.com/nodejs/node/pull/17519 Reviewed-By: Jon Moss Reviewed-By: Anatoli Papirovski Reviewed-By: Richard Lau Reviewed-By: Luigi Pinca --- doc/api/console.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'doc/api/console.md') diff --git a/doc/api/console.md b/doc/api/console.md index d942104365..6dac2a8a5e 100644 --- a/doc/api/console.md +++ b/doc/api/console.md @@ -81,10 +81,9 @@ const { Console } = console; * `stdout` {Writable} * `stderr` {Writable} -Creates a new `Console` by passing one or two writable stream instances. -`stdout` is a writable stream to print log or info output. `stderr` -is used for warning or error output. If `stderr` is not passed, warning and error -output will be sent to `stdout`. +Creates a new `Console` with one or two writable stream instances. `stdout` is a +writable stream to print log or info output. `stderr` is used for warning or +error output. If `stderr` is not provided, `stdout` is used for `stderr`. ```js const output = fs.createWriteStream('./stdout.log'); -- cgit v1.2.3