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 <duhamelantoine1995@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
Deokjin Kim
2022-12-21 23:32:07 +09:00
committed by GitHub
parent b66ae39c1e
commit f3dd3fed6d

View File

@@ -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