From 75d547809fcc6c3fb0af788c682d9a04722825c2 Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Mon, 17 May 2021 17:44:07 +0800 Subject: [PATCH] docs(cli/dts): fix `Deno.startTls` example (#10657) --- cli/dts/lib.deno.unstable.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts index 83facd27d7..0fe6df1443 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.