Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Nießen <tniessen@tnie.de>2020-09-04 12:53:16 +0300
committerNode.js GitHub Bot <github-bot@iojs.org>2020-10-13 23:46:47 +0300
commitd7e5d656ea4252231d77de04dc1aa04fcc72abe4 (patch)
treec1ef8826d9bbddf2d96b4213c65677125597182a /doc/api/stream.md
parent2cfdf28413fd9a7bfab65cb49cff6e50ab0c21ec (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.md2
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