Skip to content

Commit 4457e05

Browse files
deokjinkimRafaelGSS
authored andcommitted
doc: remove port from example in url.hostname
If port is used for `url.hostname`, `url.hostname` is not working. So remove port from example in `url.hostname`. PR-URL: #45927 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 86e30fc commit 4457e05

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
@@ -252,7 +252,7 @@ console.log(myURL.hostname);
252252
// Prints example.org
253253

254254
// Setting the hostname does not change the port
255-
myURL.hostname = 'example.com:82';
255+
myURL.hostname = 'example.com';
256256
console.log(myURL.href);
257257
// Prints https://example.com:81/foo
258258

0 commit comments

Comments
 (0)