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:
Rich Trott authored and Michaël Zasso committed 2018-09-06 08:53:57 +02:00
1 parent 68f7f87419
commit 672f74e070
1 file changed
+1 -1
+1 -1
View File
@@ -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: