Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDaeyeon Jeong <daeyeon.dev@gmail.com>2022-04-28 21:58:38 +0300
committerGitHub <noreply@github.com>2022-04-28 21:58:38 +0300
commit489e2299ed483da6665ade47db0b56bac783b89a (patch)
treeee4aaae136886f865f5fa7f6c536634b9e2e112b /doc
parent306a8fbb2d98c563d729358151f1f388c6a2b5db (diff)
doc: http2.createServer `options` as optional
The method might be designed to explicitly take `options`. However, the implementation and many examples already allow the first parameter of a function type. PR-URL: https://github.com/nodejs/node/pull/42832 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/http2.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/http2.md b/doc/api/http2.md
index 0da93a540ec..2a7311c73f6 100644
--- a/doc/api/http2.md
+++ b/doc/api/http2.md
@@ -2343,7 +2343,7 @@ Throws `ERR_HTTP2_INVALID_SETTING_VALUE` for invalid `settings` values.
Throws `ERR_INVALID_ARG_TYPE` for invalid `settings` argument.
-### `http2.createServer(options[, onRequestHandler])`
+### `http2.createServer([options][, onRequestHandler])`
<!-- YAML
added: v8.4.0