summaryrefslogtreecommitdiff
path: root/doc/api/tls.md
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2018-08-26 23:24:14 -0700
committerAnna Henningsen <anna@addaleax.net>2018-09-02 14:04:53 +0200
commit8452459ee64a065be293f0e3b8ccfbd7946bbcad (patch)
tree68d0b9011dfc28b96086b6bce3366896d3782155 /doc/api/tls.md
parent1672484b7edf9ec5269d4fed980128daf09f8f0f (diff)
downloadandroid-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.md2
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: