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 <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
Reviewed-By: Daijiro Wachi <[email protected]>
Reviewed-By: Franziska Hinkelmann <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • 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
Original file line number Diff line number Diff line change
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.