Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorRobert Nagy <ronagy@icloud.com>2019-08-05 13:01:33 +0300
committerRuben Bridgewater <ruben@bridgewater.de>2019-09-25 19:21:02 +0300
commit39b17706eab319e60d368bf573bcca990a50f2b7 (patch)
tree008c828db8b8a1fbb9de57f54421ed77239fddf7 /doc/api
parent78cbdf32862c1f2acc47ab895cfd45f354469daf (diff)
doc: make minor improvements to stream.md
PR-URL: https://github.com/nodejs/node/pull/28970 Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/stream.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/stream.md b/doc/api/stream.md
index 92070c66a87..62e30d0e8bd 100644
--- a/doc/api/stream.md
+++ b/doc/api/stream.md
@@ -372,7 +372,7 @@ added: v8.0.0
* Returns: {this}
Destroy the stream. Optionally emit an `'error'` event, and emit a `'close'`
-event unless `emitClose` is set in `false`. After this call, the writable
+event (unless `emitClose` is set to `false`). After this call, the writable
stream has ended and subsequent calls to `write()` or `end()` will result in
an `ERR_STREAM_DESTROYED` error.
This is a destructive and immediate way to destroy a stream. Previous calls to
@@ -932,7 +932,7 @@ added: v8.0.0
* Returns: {this}
Destroy the stream. Optionally emit an `'error'` event, and emit a `'close'`
-event unless `emitClose` is set in `false`. After this call, the readable
+event (unless `emitClose` is set to `false`). After this call, the readable
stream will release any internal resources and subsequent calls to `push()`
will be ignored.
Implementors should not override this method, but instead implement