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.
  • Loading branch information
Trott authored Aug 27, 2018
1 parent 90bc491 commit d92be8e
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 @@ -1005,7 +1005,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 d92be8e

Please sign in to comment.