Skip to content

Commit 3ee4cfc

Browse files
mkbaranovskyidanielleadams
authored andcommitted
doc: fix bugs in _construct() example
PR-URL: #36509 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Robert Nagy <[email protected]>
1 parent 10f1c89 commit 3ee4cfc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

doc/api/stream.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -2078,10 +2078,9 @@ class WriteStream extends Writable {
20782078
constructor(filename) {
20792079
super();
20802080
this.filename = filename;
2081-
this.fd = fd;
20822081
}
20832082
_construct(callback) {
2084-
fs.open(this.filename, (fd, err) => {
2083+
fs.open(this.filename, (err, fd) => {
20852084
if (err) {
20862085
callback(err);
20872086
} else {

0 commit comments

Comments
 (0)