Skip to content

Commit

Permalink
doc: indicate createSecureContext arg is optional
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Trott authored and targos committed Sep 3, 2018
1 parent 0e862da commit a4545ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/tls.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a4545ad

Please sign in to comment.