From 10bf5706ab9f31e0c22e93fb4024d30a017e6137 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 632eef82e4435e..00211095627a46 100644 --- a/doc/api/url.md +++ b/doc/api/url.md @@ -971,7 +971,7 @@ changes: 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: