Skip to content

Commit 67c526f

Browse files
Trottgibfahn
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 013ef22 commit 67c526f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

doc/api/console.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,9 @@ const Console = console.Console;
7272

7373
### new Console(stdout[, stderr])
7474

75-
Creates a new `Console` by passing one or two writable stream instances.
76-
`stdout` is a writable stream to print log or info output. `stderr`
77-
is used for warning or error output. If `stderr` is not passed, warning and error
78-
output will be sent to `stdout`.
75+
Creates a new `Console` with one or two writable stream instances. `stdout` is a
76+
writable stream to print log or info output. `stderr` is used for warning or
77+
error output. If `stderr` is not provided, `stdout` is used for `stderr`.
7978

8079
```js
8180
const output = fs.createWriteStream('./stdout.log');

0 commit comments

Comments
 (0)