From bb5c84a1a7e29f6e5bca619dc73c78348326c1b7 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Thu, 2 Mar 2017 05:36:29 +0000 Subject: [PATCH] doc: fix WHATWG URL url.protocol example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Protocol of `https://example.org` is `https:` not `http:`. PR-URL: https://github.com/nodejs/node/pull/11647 Reviewed-By: James M Snell Reviewed-By: Timothy Gu Reviewed-By: Michaƫl Zasso Reviewed-By: Colin Ihrig --- doc/api/url.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/url.md b/doc/api/url.md index 4c89e01807239e..ae97b57097f49e 100644 --- a/doc/api/url.md +++ b/doc/api/url.md @@ -599,7 +599,7 @@ Gets and sets the protocol portion of the URL. ```js const myURL = new URL('https://example.org'); console.log(myURL.protocol); - // Prints http: + // Prints https: myURL.protocol = 'ftp'; console.log(myURL.href);