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 2018-08-26 23:24:14 -07:00 committed by Anna Henningsen
parent 1672484b7e
commit 8452459ee6
No known key found for this signature in database
GPG Key ID: 9C63F3A6CD2AD8F9

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: