Skip to content

Commit 3e79dff

Browse files
richardlauaddaleax
authored andcommitted
doc: fix WHATWG URL url.protocol example
Protocol of `https://example.org` is `https:` not `http:`. PR-URL: #11647 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 00dd20c commit 3e79dff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/url.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ Gets and sets the protocol portion of the URL.
599599
```js
600600
const myURL = new URL('https://example.org');
601601
console.log(myURL.protocol);
602-
// Prints http:
602+
// Prints https:
603603

604604
myURL.protocol = 'ftp';
605605
console.log(myURL.href);

0 commit comments

Comments
 (0)