diff options
author | Tobias Nießen <tniessen@tnie.de> | 2020-09-04 12:53:16 +0300 |
---|---|---|
committer | Node.js GitHub Bot <github-bot@iojs.org> | 2020-10-13 23:46:47 +0300 |
commit | d7e5d656ea4252231d77de04dc1aa04fcc72abe4 (patch) | |
tree | c1ef8826d9bbddf2d96b4213c65677125597182a /doc/api/stream.md | |
parent | 2cfdf28413fd9a7bfab65cb49cff6e50ab0c21ec (diff) |
doc: fix unit of size argument of readable.read
"GB" refers to 10**9 bytes, whereas the actual limit is 2**30. The
correct unit symbol is "GiB".
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'doc/api/stream.md')
-rw-r--r-- | doc/api/stream.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/stream.md b/doc/api/stream.md index ff6990edaa0..20c7b0db6a4 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -1134,7 +1134,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. The `readable.read()` method should only be called on `Readable` streams operating in paused mode. In flowing mode, `readable.read()` is called |