From 489e2299ed483da6665ade47db0b56bac783b89a 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 0da93a540eccca..2a7311c73f6f8c 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])`