doc: fix type in stream doc

Extend return type of `read()` method with `any` which is a
valid return type for readable streams in object mode.

PR-URL: https://github.com/nodejs/node/pull/21178
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
This commit is contained in:
Aliaksei Tuzik authored and Vse Mozhet Byt committed 2018-06-09 13:53:18 +03:00
1 parent 2237a8e45d
commit 00e479fed4
1 file changed
+1 -1
+1 -1
View File
@@ -954,7 +954,7 @@ added: v0.9.4
-->
* `size` {number} Optional argument to specify how much data to read.
* Returns: {string|Buffer|null}
* Returns: {string|Buffer|null|any}
The `readable.read()` method pulls some data out of the internal buffer and
returns it. If no data available to be read, `null` is returned. By default,