Skip to content

Commit 56670f0

Browse files
daeyeonjuanarbol
authored andcommitted
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: #42832 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Paolo Insogna <[email protected]> Reviewed-By: Mestery <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Darshan Sen <[email protected]>
1 parent 9af67af commit 56670f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/http2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2288,7 +2288,7 @@ Throws `ERR_HTTP2_INVALID_SETTING_VALUE` for invalid `settings` values.
22882288

22892289
Throws `ERR_INVALID_ARG_TYPE` for invalid `settings` argument.
22902290

2291-
### `http2.createServer(options[, onRequestHandler])`
2291+
### `http2.createServer([options][, onRequestHandler])`
22922292

22932293
<!-- YAML
22942294
added: v8.4.0

0 commit comments

Comments
 (0)