Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
docs: url.format uses host for hostname and port, not auth
Browse files Browse the repository at this point in the history
Fixes #3062.
  • Loading branch information
Zachary Scott authored and bnoordhuis committed Apr 16, 2012
1 parent 59e6b14 commit b4626af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/url.markdown
Expand Up @@ -70,7 +70,7 @@ Take a parsed URL object, and return a formatted URL string.
* `auth` will only be used if `host` is absent.
* `hostname` will only be used if `host` is absent.
* `port` will only be used if `host` is absent.
* `host` will be used in place of `auth`, `hostname`, and `port`
* `host` will be used in place of `hostname` and `port`
* `pathname` is treated the same with or without the leading `/` (slash)
* `search` will be used in place of `query`
* `query` (object; see `querystring`) will only be used if `search` is absent.
Expand Down

0 comments on commit b4626af

Please sign in to comment.