Skip to content

Commit

Permalink
doc: fix _construct example params order
Browse files Browse the repository at this point in the history
PR-URL: #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>
  • Loading branch information
a0viedo authored and targos committed Nov 3, 2020
1 parent 6513a58 commit c2e6a4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/stream.md
Expand Up @@ -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 {
Expand Down

0 comments on commit c2e6a4b

Please sign in to comment.