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: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
1672484b7e
commit
8452459ee6
@ -1003,7 +1003,7 @@ as arguments instead of options.
|
||||
A port or host option, if specified, will take precedence over any port or host
|
||||
argument.
|
||||
|
||||
## tls.createSecureContext(options)
|
||||
## tls.createSecureContext([options])
|
||||
<!-- YAML
|
||||
added: v0.11.13
|
||||
changes:
|
||||
|
Loading…
x
Reference in New Issue
Block a user