diff --git a/doc/api/url.md b/doc/api/url.md index 4c89e01807239e..ae97b57097f49e 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);