diff options
author | Rich Trott <rtrott@gmail.com> | 2018-08-26 23:24:14 -0700 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-09-02 14:04:53 +0200 |
commit | 8452459ee64a065be293f0e3b8ccfbd7946bbcad (patch) | |
tree | 68d0b9011dfc28b96086b6bce3366896d3782155 /doc/api/tls.md | |
parent | 1672484b7edf9ec5269d4fed980128daf09f8f0f (diff) | |
download | android-node-v8-8452459ee64a065be293f0e3b8ccfbd7946bbcad.tar.gz android-node-v8-8452459ee64a065be293f0e3b8ccfbd7946bbcad.tar.bz2 android-node-v8-8452459ee64a065be293f0e3b8ccfbd7946bbcad.zip |
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>
Diffstat (limited to 'doc/api/tls.md')
-rw-r--r-- | doc/api/tls.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/tls.md b/doc/api/tls.md index 6ac4739081..e7d04e448e 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -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: |