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
diff options
context:
space:
mode:
authorSam Roberts <vieuxtech@gmail.com>2017-06-07 22:48:35 +0300
committerAnna Henningsen <anna@addaleax.net>2017-07-11 20:16:40 +0300
commit69f806cc55103a2fca7c7dc7019126740c1a249e (patch)
tree177162f1dc93992b8369d9096599f7ebeed87b72 /doc/api/stream.md
parente2d325403f4ea53c112c27acc880931723b2a797 (diff)
net: return this from destroy()
PR-URL: https://github.com/nodejs/node/pull/13530 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/stream.md')
-rw-r--r--doc/api/stream.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/api/stream.md b/doc/api/stream.md
index ca37243c90e..ff1b0c78fbc 100644
--- a/doc/api/stream.md
+++ b/doc/api/stream.md
@@ -515,8 +515,10 @@ A Writable stream in object mode will always ignore the `encoding` argument.
added: v8.0.0
-->
+* Returns: `this`
+
Destroy the stream, and emit the passed error. After this call, the
-writible stream has ended. Implementors should not override this method,
+writable stream has ended. Implementors should not override this method,
but instead implement [`writable._destroy`][writable-_destroy].
### Readable Streams