Permalink
Browse files

doc: improve text for Console constructor

Make text for Console constructor more precise.

PR-URL: #17519
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information...
Trott authored and gibfahn committed Dec 7, 2017
1 parent 013ef22 commit 67c526fbb855fb94b65f9e3be46aa68525021737
Showing with 3 additions and 4 deletions.
  1. +3 −4 doc/api/console.md
View
@@ -72,10 +72,9 @@ const Console = console.Console;
### new Console(stdout[, stderr])
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');

0 comments on commit 67c526f

Please sign in to comment.