diff --git a/doc/api/url.md b/doc/api/url.md index d5dc06055b6c..bdc27144fa3a 100644 --- a/doc/api/url.md +++ b/doc/api/url.md @@ -1741,6 +1741,7 @@ changes: * `urlObject` {Object} A URL object (as returned by `url.parse()` or constructed otherwise). +* Returns: {string} The `url.format()` method returns a formatted URL string derived from `urlObject`. @@ -1836,6 +1837,7 @@ changes: * `urlString` {string} A string that will be passed to `url.parse()` and then formatted. +* Returns: {string} `url.format(urlString)` is shorthand for `url.format(url.parse(urlString))`.