summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSam Foxman <samfoxman320@gmail.com>2019-11-04 17:45:27 -0500
committerAnna Henningsen <anna@addaleax.net>2019-11-30 18:08:30 +0100
commitc8930fb9bf647b88bba9b6e7be4f4ea119fb3d57 (patch)
treee77cd13d146f4320bec37e0e8e2eb41fb6cf0bb3 /doc
parentbd072113c666f7d34c0dee0678177bda216cc79b (diff)
downloadandroid-node-v8-c8930fb9bf647b88bba9b6e7be4f4ea119fb3d57.tar.gz
android-node-v8-c8930fb9bf647b88bba9b6e7be4f4ea119fb3d57.tar.bz2
android-node-v8-c8930fb9bf647b88bba9b6e7be4f4ea119fb3d57.zip
doc: clarify IncomingMessage.destroy() description
State that the 'error' event is emitted on the underlying socket, not the IncomingMessage object. PR-URL: https://github.com/nodejs/node/pull/30255 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/http.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/http.md b/doc/api/http.md
index 44bea87e3b..9762abd27e 100644
--- a/doc/api/http.md
+++ b/doc/api/http.md
@@ -1798,8 +1798,8 @@ added: v0.3.0
* `error` {Error}
Calls `destroy()` on the socket that received the `IncomingMessage`. If `error`
-is provided, an `'error'` event is emitted and `error` is passed as an argument
-to any listeners on the event.
+is provided, an `'error'` event is emitted on the socket and `error` is passed
+as an argument to any listeners on the event.
### message.headers
<!-- YAML