Skip to content

Commit d7e5d65

Browse files
tniessennodejs-github-bot
authored andcommitted
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: #35051 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Gerhard Stöbich <[email protected]>
1 parent 2cfdf28 commit d7e5d65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/stream.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ buffer will be returned.
11341134
If the `size` argument is not specified, all of the data contained in the
11351135
internal buffer will be returned.
11361136

1137-
The `size` argument must be less than or equal to 1 GB.
1137+
The `size` argument must be less than or equal to 1 GiB.
11381138

11391139
The `readable.read()` method should only be called on `Readable` streams
11401140
operating in paused mode. In flowing mode, `readable.read()` is called

0 commit comments

Comments
 (0)