Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: fix writable._construct() example #36509

Closed
wants to merge 1 commit into from
Closed

doc: fix writable._construct() example #36509

wants to merge 1 commit into from

Conversation

mkbaranovskyi
Copy link
Contributor

This is my first pull request, please correct me if I'm missing something. The proposed changes include two small bug fixes in the Stream reference, namely in the writable._construct() example:

  1. Incorrect property appointment in the constructor - no fd parameter is passed. Instead, this.fd is appointed in the _construct() method. Removing this line from the constructor() fixes the error.
  2. The fs.open() callback parameters switched places according to the fs.open reference (and my tests).
Checklist
  • [ x] documentation is changed or added

@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. stream Issues and PRs related to the stream subsystem. labels Dec 14, 2020
@aduh95 aduh95 changed the title Two bugs in the writable._construct() ref example fixed doc,stream: fix writable._construct() example Dec 14, 2020
Copy link
Contributor

@aduh95 aduh95 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for spotting this and sending a fix!

@mscdex mscdex changed the title doc,stream: fix writable._construct() example doc: fix writable._construct() example Dec 14, 2020
Trott pushed a commit that referenced this pull request Dec 25, 2020
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>
@Trott
Copy link
Member

Trott commented Dec 25, 2020

Landed in f441c8b.

Thanks for the contribution! 🎉

@Trott Trott closed this Dec 25, 2020
danielleadams pushed a commit that referenced this pull request Jan 12, 2021
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>
@danielleadams danielleadams mentioned this pull request Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Issues and PRs related to the documentations. stream Issues and PRs related to the stream subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants