mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
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:
1 parent
68f7f87419
commit
672f74e070
1 file changed
+1
-1
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user