From 4d6150bae11d6089e5fdbe8cc526e24092b8b9d8 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`. PR-URL: https://github.com/nodejs/node/pull/15014 Reviewed-By: Matteo Collina Reviewed-By: James M Snell Reviewed-By: Luigi Pinca --- 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 ffe0df4a20..23b8aa55e1 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.