-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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 unit of size argument of readable.read #35051
Conversation
"GB" refers to 10**9 bytes, whereas the actual limit is 2**30. The correct unit symbol is "GiB".
I guess this depends on the base used. I think both are acceptable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@@ -1126,7 +1126,7 @@ buffer will be returned. | |||
If the `size` argument is not specified, all of the data contained in the | |||
internal buffer will be returned. | |||
|
|||
The `size` argument must be less than or equal to 1 GB. | |||
The `size` argument must be less than or equal to 1 GiB. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a blocker, as if anyone has any great ideas, they can always be implemented later, but I think the distinction is esoteric enough that we should spell it out on the first occurrence (or maybe even every occurrence). But I'm also having a hard time figuring out a way to do it in a straightforward way. 1024^3 bytes
is not exactly immediately clarifying. (My thought would be, "Isn't that the same as a GB?")
7861793
to
277e12c
Compare
Commit Queue failed- Loading data for nodejs/node/pull/35051 ✔ Done loading data for nodejs/node/pull/35051 ----------------------------------- PR info ------------------------------------ Title doc: fix unit of size argument of readable.read (#35051) ⚠ Could not retrieve the email or name of the PR author's from user's GitHub profile! Branch tniessen:doc-be-explicit-about-gib-unit -> nodejs:master Labels author ready, doc, stream Commits 1 - doc: fix unit of size argument of readable.read Committers 1 - Tobias Nießen PR-URL: https://github.com/nodejs/node/pull/35051 Reviewed-By: Luigi Pinca Reviewed-By: Matteo Collina ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/35051 Reviewed-By: Luigi Pinca Reviewed-By: Matteo Collina -------------------------------------------------------------------------------- ⚠ Commits were pushed since the last review: ⚠ - doc: fix unit of size argument of readable.read ✖ GitHub CI is still running ℹ Doc-only changes ℹ This PR was created on Fri, 04 Sep 2020 09:55:48 GMT ✔ Approvals: 2 ✔ - Luigi Pinca (@lpinca): https://github.com/nodejs/node/pull/35051#pullrequestreview-482573171 ✔ - Matteo Collina (@mcollina) (TSC): https://github.com/nodejs/node/pull/35051#pullrequestreview-482739095 -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncu |
277e12c
to
7861793
Compare
Landed in 2cfdf28...d7e5d65 |
"GB" refers to 10**9 bytes, whereas the actual limit is 2**30. The correct unit symbol is "GiB". PR-URL: #35051 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
"GB" refers to 10**9 bytes, whereas the actual limit is 2**30. The correct unit symbol is "GiB". PR-URL: #35051 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
"GB" refers to 10**9 bytes, whereas the actual limit is 2**30. The correct unit symbol is "GiB". PR-URL: nodejs#35051 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
In the context of data transmission, "GB" refers to 109 bytes, whereas the actual limit is 230. The correct unit symbol is "GiB".
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes