Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Two bugs in the _construct() example fixed
  • Loading branch information
mkbaranovskyi authored Dec 14, 2020
commit 22764c45c6be6a9756c235f9c0bcf63e8cd41dcb
3 changes: 1 addition & 2 deletions doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -2078,10 +2078,9 @@ class WriteStream extends Writable {
constructor(filename) {
super();
this.filename = filename;
this.fd = fd;
}
_construct(callback) {
fs.open(this.filename, (fd, err) => {
fs.open(this.filename, (err, fd) => {
if (err) {
callback(err);
} else {
Expand Down