From edaa2eebd6101ecaff9eda38232d651f4bbc8713 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Thu, 19 Sep 2019 16:21:36 +0300 Subject: [PATCH] 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(-) diff --git a/doc/api/http.md b/doc/api/http.md index 24ffedff5269fa..d1a2b200f79c06 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -1167,7 +1167,7 @@ added: v0.3.0 See [`response.socket`][]. -### response.end([data][, encoding][, callback]) +### response.end([data[, encoding]][, callback])