Skip to content

Commit e313dc6

Browse files
daeyeontargos
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 8f2b228 commit e313dc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/http2.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2343,7 +2343,7 @@ Throws `ERR_HTTP2_INVALID_SETTING_VALUE` for invalid `settings` values.
23432343

23442344
Throws `ERR_INVALID_ARG_TYPE` for invalid `settings` argument.
23452345

2346-
### `http2.createServer(options[, onRequestHandler])`
2346+
### `http2.createServer([options][, onRequestHandler])`
23472347

23482348
<!-- YAML
23492349
added: v8.4.0

0 commit comments

Comments
 (0)