Skip to content

Commit

Permalink
doc: fix WHATWG URL url.protocol example
Browse files Browse the repository at this point in the history
Protocol of `https://example.org` is `https:` not `http:`.

PR-URL: #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>
  • Loading branch information
richardlau authored and addaleax committed Mar 5, 2017
1 parent 00dd20c commit 3e79dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/url.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3e79dff

Please sign in to comment.