Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3ee4cfc

Browse filesBrowse files
mkbaranovskyidanielleadams
authored andcommitted
doc: fix bugs in _construct() example
PR-URL: #36509 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com>
1 parent 10f1c89 commit 3ee4cfc
Copy full SHA for 3ee4cfc

File tree

Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Open diff view settings
Collapse file

‎doc/api/stream.md‎

Copy file name to clipboardExpand all lines: doc/api/stream.md
+1-2Lines changed: 1 addition & 2 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.