Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro Oviedo <alejandro.oviedo.g@gmail.com>2020-10-24 22:33:50 +0300
committerNode.js GitHub Bot <github-bot@iojs.org>2020-10-27 09:30:31 +0300
commit7c3ce9db3085cf11daf900efb12767b1119a69ca (patch)
tree5245c9d0fc5e1269f1e8c0bd1e087ab062dbbb2f
parent8f1e4d37bf33b8a4d3e09bffc1bcbb04c869eba0 (diff)
doc: fix _construct example params order
PR-URL: https://github.com/nodejs/node/pull/35790 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
-rw-r--r--doc/api/stream.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/stream.md b/doc/api/stream.md
index c545b28236d..cd1687aaef6 100644
--- a/doc/api/stream.md
+++ b/doc/api/stream.md
@@ -2316,7 +2316,7 @@ class ReadStream extends Readable {
this.fd = null;
}
_construct(callback) {
- fs.open(this.filename, (fd, err) => {
+ fs.open(this.filename, (err, fd) => {
if (err) {
callback(err);
} else {