Skip to content

Commit 9ec0eab

Browse files
TrottMylesBorins
authored andcommitted
doc: make suggestion more direct in stream.md
PR-URL: #19124 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 8d33e5c commit 9ec0eab

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

doc/api/stream.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -942,9 +942,8 @@ readable.on('readable', () => {
942942
});
943943
```
944944

945-
In general, it is recommended that developers avoid the use of the `'readable'`
946-
event and the `readable.read()` method in favor of using either
947-
`readable.pipe()` or the `'data'` event.
945+
Avoid the use of the `'readable'` event and the `readable.read()` method in
946+
favor of using either `readable.pipe()` or the `'data'` event.
948947

949948
A Readable stream in object mode will always return a single item from
950949
a call to [`readable.read(size)`][stream-read], regardless of the value of the

0 commit comments

Comments
 (0)