summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2021-05-17 17:44:07 +0800
committerGitHub <noreply@github.com>2021-05-17 18:44:07 +0900
commit75d547809fcc6c3fb0af788c682d9a04722825c2 (patch)
tree4ffacb2be94398dcc79017c42c24c26d9c2b324f
parent5151afa123a9635d2f4de9555f8843460b284a11 (diff)
docs(cli/dts): fix `Deno.startTls` example (#10657)
-rw-r--r--cli/dts/lib.deno.unstable.d.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts
index 83facd27d..0fe6df144 100644
--- a/cli/dts/lib.deno.unstable.d.ts
+++ b/cli/dts/lib.deno.unstable.d.ts
@@ -982,7 +982,7 @@ declare namespace Deno {
*
* ```ts
* const conn = await Deno.connect({ port: 80, hostname: "127.0.0.1" });
- * const tlsConn = await Deno.startTls(conn, { certFile: "./certs/my_custom_root_CA.pem", hostname: "127.0.0.1", port: 80 });
+ * const tlsConn = await Deno.startTls(conn, { certFile: "./certs/my_custom_root_CA.pem", hostname: "localhost" });
* ```
*
* Requires `allow-net` permission.