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 <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>
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

Lines changed: 1 addition & 1 deletion
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)