From 46dc2416b9921f812645ccc0485740d3706b5783 Mon Sep 17 00:00:00 2001 From: pkovacs Date: Sat, 25 Nov 2017 11:35:42 +0100 Subject: [PATCH] doc: fix typo in api doc of url.format(urlObject) PR-URL: https://github.com/nodejs/node/pull/17295 Fixes: https://github.com/nodejs/node/issues/17294 Reviewed-By: Vse Mozhet Byt Reviewed-By: Gireesh Punathil Reviewed-By: Luigi Pinca Reviewed-By: Evan Lucas Reviewed-By: Anatoli Papirovski --- doc/api/url.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/url.md b/doc/api/url.md index 6d0911da81d899..efb0a8103ccafe 100644 --- a/doc/api/url.md +++ b/doc/api/url.md @@ -145,7 +145,7 @@ added: v0.1.25 The `url.format()` method returns a formatted URL string derived from `urlObject`. -If `urlObject` is not an object or a string, `url.parse()` will throw a +If `urlObject` is not an object or a string, `url.format()` will throw a [`TypeError`][]. The formatting process operates as follows: