Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
doc: fix WHATWG URL url.protocol example
Protocol of `https://example.org` is `https:` not `http:`.
  • Loading branch information
richardlau authored Mar 2, 2017
commit f539f20c7130c0bfbf7e25b57928f1a77a0f8cc7
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