diff options
author | Alejandro Oviedo <alejandro.oviedo.g@gmail.com> | 2020-10-24 22:33:50 +0300 |
---|---|---|
committer | Node.js GitHub Bot <github-bot@iojs.org> | 2020-10-27 09:30:31 +0300 |
commit | 7c3ce9db3085cf11daf900efb12767b1119a69ca (patch) | |
tree | 5245c9d0fc5e1269f1e8c0bd1e087ab062dbbb2f /doc/api/stream.md | |
parent | 8f1e4d37bf33b8a4d3e09bffc1bcbb04c869eba0 (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>
Diffstat (limited to 'doc/api/stream.md')
-rw-r--r-- | doc/api/stream.md | 2 |
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 { |