From 5bdb61b4e26bd0395311858325b272a96931d34a Mon Sep 17 00:00:00 2001 From: Daeyeon Jeong Date: Fri, 29 Apr 2022 03:58:38 +0900 Subject: [PATCH] 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 Reviewed-By: Robert Nagy Reviewed-By: Paolo Insogna Reviewed-By: Mestery Reviewed-By: Rafael Gonzaga Reviewed-By: Luigi Pinca Reviewed-By: Darshan Sen --- doc/api/http2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/http2.md b/doc/api/http2.md index ea09de3431bc17..9bd9374f3045b5 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -2288,7 +2288,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])`