Skip to content

Commit db261a9

Browse files
deokjinkimaduh95
andauthored
Update doc/api/url.md
Applied @aduh95's suggestion. Co-authored-by: Antoine du Hamel <[email protected]>
1 parent 15990de commit db261a9

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
@@ -251,7 +251,7 @@ const myURL = new URL('https://example.org:81/foo');
251251
console.log(myURL.hostname);
252252
// Prints example.org
253253

254-
// Setting the hostname does not change the port
254+
// Setting an invalid hostname is ignored:
255255
myURL.hostname = 'example.com:82';
256256
console.log(myURL.href);
257257
// Prints https://example.org:81/foo

0 commit comments

Comments
 (0)