Skip to content

Commit a4545ad

Browse files
Trotttargos
authored andcommitted
doc: indicate createSecureContext arg is optional
The `options` argument to `tls.createSecureContext()` is optional. Indicate this by using `[` and `]` in the function signature. PR-URL: #22545 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: George Adams <[email protected]>
1 parent 0e862da commit a4545ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/tls.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ as arguments instead of options.
10031003
A port or host option, if specified, will take precedence over any port or host
10041004
argument.
10051005

1006-
## tls.createSecureContext(options)
1006+
## tls.createSecureContext([options])
10071007
<!-- YAML
10081008
added: v0.11.13
10091009
changes:

0 commit comments

Comments
 (0)