doc: report proper return type on url.format

Signed-off-by: Brian Muenzenmeyer <brian.muenzenmeyer@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/64806
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
This commit is contained in:
Brian Muenzenmeyer authored and Antoine du Hamel committed 2026-08-05 11:15:03 +02:00
1 parent e655e42085
commit a0bf29ea09
1 file changed
+2
+2
View File
@@ -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))`.