Skip to content

Commit a560ae8

Browse files
committed
doc,stream: remove wrong remark on readable.read
The returned chunk is *never* longer than `size`.
1 parent 43029da commit a560ae8

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
@@ -894,7 +894,7 @@ in object mode.
894894
The optional `size` argument specifies a specific number of bytes to read. If
895895
`size` bytes are not available to be read, `null` will be returned *unless*
896896
the stream has ended, in which case all of the data remaining in the internal
897-
buffer will be returned (*even if it exceeds `size` bytes*).
897+
buffer will be returned.
898898

899899
If the `size` argument is not specified, all of the data contained in the
900900
internal buffer will be returned.

0 commit comments

Comments
 (0)