Skip to content

Commit 24c7eaf

Browse files
bmuenzenmeyeraduh95
authored andcommitted
doc: report proper return type on url.format
Signed-off-by: Brian Muenzenmeyer <brian.muenzenmeyer@gmail.com> PR-URL: #64806 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
1 parent d35315b commit 24c7eaf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

doc/api/url.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1741,6 +1741,7 @@ changes:
17411741
17421742
* `urlObject` {Object} A URL object (as returned by `url.parse()` or
17431743
constructed otherwise).
1744+
* Returns: {string}
17441745
17451746
The `url.format()` method returns a formatted URL string derived from
17461747
`urlObject`.
@@ -1836,6 +1837,7 @@ changes:
18361837
18371838
* `urlString` {string} A string that will be passed to `url.parse()` and then
18381839
formatted.
1840+
* Returns: {string}
18391841
18401842
`url.format(urlString)` is shorthand for `url.format(url.parse(urlString))`.
18411843

0 commit comments

Comments
 (0)