From 546e083d367208a85d238b730fc1827c640c4acc Mon Sep 17 00:00:00 2001 From: Deokjin Kim Date: Wed, 21 Dec 2022 23:32:07 +0900 Subject: [PATCH] doc: fix wrong output of example in `url.password` Tailing slash of url.href is ommited. PR-URL: https://github.com/nodejs/node/pull/45928 Reviewed-By: Antoine du Hamel Reviewed-By: Colin Ihrig --- 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 53503bc062988a..df1362a30c22f2 100644 --- a/doc/api/url.md +++ b/doc/api/url.md @@ -332,7 +332,7 @@ console.log(myURL.password); myURL.password = '123'; console.log(myURL.href); -// Prints https://abc:123@example.com +// Prints https://abc:123@example.com/ ``` Invalid URL characters included in the value assigned to the `password` property