Skip to content

Commit ac41aac

Browse files
陈刚MylesBorins
陈刚
authored andcommitted
doc: improve stream documentation
PR-URL: #18375 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent a8b5a96 commit ac41aac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/stream.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -572,8 +572,8 @@ The Readable can switch back to paused mode using one of the following:
572572

573573
* If there are no pipe destinations, by calling the
574574
[`stream.pause()`][stream-pause] method.
575-
* If there are pipe destinations, by removing any [`'data'`][] event
576-
handlers, and removing all pipe destinations by calling the
575+
* If there are pipe destinations, by removing all pipe destinations.
576+
Multiple pipe destinations may be removed by calling the
577577
[`stream.unpipe()`][] method.
578578

579579
The important concept to remember is that a Readable will not generate data
@@ -1411,7 +1411,7 @@ write succeeded.
14111411

14121412
All calls to `writable.write()` that occur between the time `writable._write()`
14131413
is called and the `callback` is called will cause the written data to be
1414-
buffered. Once the `callback` is invoked, the stream will emit a [`'drain'`][]
1414+
buffered. When the `callback` is invoked, the stream might emit a [`'drain'`][]
14151415
event. If a stream implementation is capable of processing multiple chunks of
14161416
data at once, the `writable._writev()` method should be implemented.
14171417

0 commit comments

Comments
 (0)