From ab9b8e73eb1d664c0959e361478f47a546bda223 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Thu, 19 Sep 2019 16:21:36 +0300 Subject: 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 Reviewed-By: Luigi Pinca Reviewed-By: Trivikram Kamat --- doc/api/http.md | 2 +- doc/api/http2.md | 2 +- doc/api/stream.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'doc') 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])