diff options
author | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2019-09-19 16:21:36 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-09-22 16:58:54 -0700 |
commit | ab9b8e73eb1d664c0959e361478f47a546bda223 (patch) | |
tree | 86f0a0430b775edf772c4ecdbc12b4bdcc2751fb /doc/api/http.md | |
parent | 54a0553a9f0d3106fc0ab10296bdf4e17775ccbe (diff) | |
download | android-node-v8-ab9b8e73eb1d664c0959e361478f47a546bda223.tar.gz android-node-v8-ab9b8e73eb1d664c0959e361478f47a546bda223.tar.bz2 android-node-v8-ab9b8e73eb1d664c0959e361478f47a546bda223.zip |
doc: fix some signatures of .end() methods
In `.end()` methods, an optional `encoding` parameter makes sense
only if the `data` (`chunk`) parameter is provided.
PR-URL: https://github.com/nodejs/node/pull/29615
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'doc/api/http.md')
-rw-r--r-- | doc/api/http.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/http.md b/doc/api/http.md index 10f68cab4c..2f51e2473a 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -1175,7 +1175,7 @@ deprecated: REPLACEME See [`response.socket`][]. -### response.end([data][, encoding][, callback]) +### response.end([data[, encoding]][, callback]) <!-- YAML added: v0.1.90 changes: |