diff --git a/doc/api/url.md b/doc/api/url.md index 637616364b..5104c57539 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);