Skip to content

Commit 18d6dab

Browse files
TrottMylesBorins
authored andcommitted
doc: improve text for Console constructor
Make text for Console constructor more precise. PR-URL: #17519 Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent cb09959 commit 18d6dab

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

doc/api/console.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,9 @@ const { Console } = console;
8181
* `stdout` {Writable}
8282
* `stderr` {Writable}
8383

84-
Creates a new `Console` by passing one or two writable stream instances.
85-
`stdout` is a writable stream to print log or info output. `stderr`
86-
is used for warning or error output. If `stderr` is not passed, warning and error
87-
output will be sent to `stdout`.
84+
Creates a new `Console` with one or two writable stream instances. `stdout` is a
85+
writable stream to print log or info output. `stderr` is used for warning or
86+
error output. If `stderr` is not provided, `stdout` is used for `stderr`.
8887

8988
```js
9089
const output = fs.createWriteStream('./stdout.log');

0 commit comments

Comments
 (0)