Skip to content

Commit a2af3a4

Browse files
committed
doc: fix url example to match behavior
Fixes one WHATWG URL example to match the actual behavior. Fixes: #22653
1 parent 3f4dc54 commit a2af3a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/url.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1286,7 +1286,7 @@ const myURL = new URL('https://%CF%80.example.com/foo');
12861286
console.log(myURL.href);
12871287
// Prints https://xn--1xa.example.com/foo
12881288
console.log(myURL.origin);
1289-
// Prints https://π.example.com
1289+
// Prints https://xn--1xa.example.com
12901290
```
12911291

12921292
[`Error`]: errors.html#errors_class_error

0 commit comments

Comments
 (0)