Skip to content

Commit 1fceccb

Browse files
ronagTrott
authored andcommitted
doc: make minor improvements to stream.md
PR-URL: #28970 Reviewed-By: Rich Trott <[email protected]>
1 parent bd02775 commit 1fceccb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/stream.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ added: v8.0.0
375375
* Returns: {this}
376376

377377
Destroy the stream. Optionally emit an `'error'` event, and emit a `'close'`
378-
event unless `emitClose` is set in `false`. After this call, the writable
378+
event (unless `emitClose` is set to `false`). After this call, the writable
379379
stream has ended and subsequent calls to `write()` or `end()` will result in
380380
an `ERR_STREAM_DESTROYED` error.
381381
This is a destructive and immediate way to destroy a stream. Previous calls to
@@ -935,7 +935,7 @@ added: v8.0.0
935935
* Returns: {this}
936936

937937
Destroy the stream. Optionally emit an `'error'` event, and emit a `'close'`
938-
event unless `emitClose` is set in `false`. After this call, the readable
938+
event (unless `emitClose` is set to `false`). After this call, the readable
939939
stream will release any internal resources and subsequent calls to `push()`
940940
will be ignored.
941941
Implementors should not override this method, but instead implement

0 commit comments

Comments
 (0)