diff options
-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 { |