Skip to content

Commit 546e083

Browse files
deokjinkimjuanarbol
authored andcommitted
doc: fix wrong output of example in url.password
Tailing slash of url.href is ommited. PR-URL: #45928 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent e4fc3ab commit 546e083

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/url.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ console.log(myURL.password);
332332

333333
myURL.password = '123';
334334
console.log(myURL.href);
335-
// Prints https://abc:123@example.com
335+
// Prints https://abc:123@example.com/
336336
```
337337

338338
Invalid URL characters included in the value assigned to the `password` property

0 commit comments

Comments
 (0)