From a4545ad8dc2935fbc9ed0c67fc744fac9f6e0ef4 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sun, 26 Aug 2018 23:24:14 -0700 Subject: [PATCH] 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 Reviewed-By: Luigi Pinca Reviewed-By: Trivikram Kamat Reviewed-By: James M Snell Reviewed-By: George Adams --- doc/api/tls.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/tls.md b/doc/api/tls.md index bc5e1b416f2c3d..417449c097385a 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])