diff options
author | Richard Lau <riclau@uk.ibm.com> | 2017-03-02 05:36:29 +0000 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-03-02 09:35:20 -0800 |
commit | bb5c84a1a7e29f6e5bca619dc73c78348326c1b7 (patch) | |
tree | a29ea1dbaef9dd09294a6111da39ced227727ee3 /doc/api/url.md | |
parent | 5269e952a1541598feb17749b516b6ea50385150 (diff) | |
download | android-node-v8-bb5c84a1a7e29f6e5bca619dc73c78348326c1b7.tar.gz android-node-v8-bb5c84a1a7e29f6e5bca619dc73c78348326c1b7.tar.bz2 android-node-v8-bb5c84a1a7e29f6e5bca619dc73c78348326c1b7.zip |
doc: fix WHATWG URL url.protocol example
Protocol of `https://example.org` is `https:` not `http:`.
PR-URL: https://github.com/nodejs/node/pull/11647
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'doc/api/url.md')
-rw-r--r-- | doc/api/url.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/url.md b/doc/api/url.md index 4c89e01807..ae97b57097 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); |