Skip to content

Commit

Permalink
doc: fix unit of size argument of readable.read
Browse files Browse the repository at this point in the history
"GB" refers to 10**9 bytes, whereas the actual limit is 2**30. The
correct unit symbol is "GiB".
  • Loading branch information
tniessen committed Sep 4, 2020
1 parent 6e8701b commit 7861793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

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

0 comments on commit 7861793

Please sign in to comment.