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 | |
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')
-rw-r--r-- | doc/api/http.md | 2 | ||||
-rw-r--r-- | doc/api/http2.md | 2 | ||||
-rw-r--r-- | doc/api/stream.md | 2 |
3 files changed, 3 insertions, 3 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: diff --git a/doc/api/http2.md b/doc/api/http2.md index 494a7d8212..a204f53e3b 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -3006,7 +3006,7 @@ deprecated: REPLACEME See [`response.socket`][]. -#### response.end([data][, encoding][, callback]) +#### response.end([data[, encoding]][, callback]) <!-- YAML added: v8.4.0 changes: diff --git a/doc/api/stream.md b/doc/api/stream.md index 03171f4a2e..b6093e8917 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -394,7 +394,7 @@ added: v8.0.0 Is `true` after [`writable.destroy()`][writable-destroy] has been called. -##### writable.end([chunk][, encoding][, callback]) +##### writable.end([chunk[, encoding]][, callback]) <!-- YAML added: v0.9.4 changes: |