FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

doc: make unshift doc compliant with push doc by EduardoRFS · Pull Request #28953 · nodejs/node · GitHub

/ node Public

doc: make unshift doc compliant with push doc - #28953

Closed
EduardoRFS wants to merge 3 commits into
nodejs:masterfrom
EduardoRFS:patch-1
Closed

doc: make unshift doc compliant with push doc#28953
EduardoRFS wants to merge 3 commits into
nodejs:masterfrom
EduardoRFS:patch-1

Conversation

EduardoRFS commented Aug 3, 2019
edited
Loading

Copy link
Copy Markdown
Contributor

As readable.unshift() share implementation with readable.push() it makes sense to make the doc similar.

Checklist

nodejs-github-bot added doc Issues and PRs related to the documentations. stream Issues and PRs related to the stream subsystem. labels Aug 3, 2019
Comment thread doc/api/stream.md Outdated
readable.unshift() also allows to pass null and end stream

readable.push() don't allow null when in object mode
EduardoRFS changed the title doc: unshift doc when chunk is null doc: make unshift doc compliant with push doc Aug 4, 2019

Copy link
Copy Markdown
Contributor Author

Updated <3

Comment thread doc/api/stream.md Outdated
Co-Authored-By: mscdex <mscdex@users.noreply.github.com>
Comment thread doc/api/stream.md Outdated
* `encoding` {string} Encoding of string chunks. Must be a valid
`Buffer` encoding, such as `'utf8'` or `'ascii'`.

Passing `chunk` as `null` signals the end of the stream (EOF), after which no more data can be written.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This will (I hope) cause the linter to fail because it is longer than 80 characters. Word wrap at 80 chars? To run the markdown linter, you can run make lint-md (or, if on Windows, vcbuild lint-md).

Comment thread doc/api/stream.md

Trott commented Aug 6, 2019

Copy link
Copy Markdown
Member

/ping @nodejs/streams

Trott commented Aug 6, 2019

Copy link
Copy Markdown
Member

I made the changes (line-wrap and more null clarification) and pushed up to the branch. I kept my changes in a separate fixup commit so they can be removed easily. @mscdex LGTY?

Trott commented Aug 6, 2019

Copy link
Copy Markdown
Member

mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

Trott commented Aug 7, 2019

Copy link
Copy Markdown
Member

Landed in 84a6384.

Thanks for the contribution! 🎉

Trott closed this Aug 7, 2019
Trott pushed a commit to Trott/io.js that referenced this pull request Aug 7, 2019
readable.unshift() also allows to pass null and end stream

PR-URL: nodejs#28953
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
targos pushed a commit that referenced this pull request Aug 19, 2019
readable.unshift() also allows to pass null and end stream

PR-URL: #28953
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

6 participants


Back | FazBrowse Home | New Git URL