From a560ae82b4a04979f463be65f83ebb95a0514ca4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Sch=C3=A4r?= Date: Thu, 24 Aug 2017 16:45:19 +0200 Subject: [PATCH] doc,stream: remove wrong remark on readable.read The returned chunk is *never* longer than `size`. --- doc/api/stream.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/stream.md b/doc/api/stream.md index ffe0df4a20b73b..23b8aa55e1356e 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -894,7 +894,7 @@ in object mode. The optional `size` argument specifies a specific number of bytes to read. If `size` bytes are not available to be read, `null` will be returned *unless* the stream has ended, in which case all of the data remaining in the internal -buffer will be returned (*even if it exceeds `size` bytes*). +buffer will be returned. If the `size` argument is not specified, all of the data contained in the internal buffer will be returned.