Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update doc/api/url.md
Co-authored-by: Antoine du Hamel <[email protected]>
  • Loading branch information
darkrishabh and aduh95 authored Nov 17, 2020
commit bb980d85d84447b0771cf5a93261a37cf36d6ecf
2 changes: 1 addition & 1 deletion doc/api/url.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ console.log(myURL.hostname);
// Setting the hostname does not change the port
myURL.hostname = 'example.com:82';
console.log(myURL.href);
// Prints https://example.com:82/foo
// Prints https://example.com:81/foo

// Use, myURL.host to change the hostname and port
myURL.host = 'example.org:82';
Expand Down