Skip to content

Commit 6ece8fd

Browse files
committed
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`.
1 parent 5124613 commit 6ece8fd

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