mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
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 <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>
This commit is contained in:
1 parent
013ef22ef8
commit
67c526fbb8
1 file changed
+3
-4
+3
-4
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user