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 <vsemozhetbyt@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: George Adams <george.adams@uk.ibm.com>
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

Lines changed: 1 addition & 1 deletion
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)