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>
This commit is contained in:
Daeyeon Jeong authored and GitHub committed 2022-04-28 19:58:38 +01:00
1 parent 306a8fbb2d
commit 489e2299ed
1 file changed
+1 -1
+1 -1
View File
@@ -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