Skip to content

Commit 2dbaa74

Browse files
jscissrMylesBorins
authored andcommitted
doc,stream: remove wrong remark on readable.read
The returned chunk is *never* longer than `size`. PR-URL: #15014 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 4b44367 commit 2dbaa74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/stream.md

+1-1
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)