diff options
author | Сковорода Никита Андреевич <chalkerx@gmail.com> | 2018-10-10 03:05:16 +0300 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-10-15 06:51:41 +0300 |
commit | 3b1baf63722b34c75e75d2e9f0f21e867e113332 (patch) | |
tree | 4218eaab4edebecd8dc8c4b3a3f5b34c34df193d /doc/api/url.md | |
parent | 0311fcc546e792c813f1c6644ff7e60e7a7b5158 (diff) |
doc: fix url example to match behavior
Fixes one WHATWG URL example to match the actual behavior.
PR-URL: https://github.com/nodejs/node/pull/23359
Fixes: https://github.com/nodejs/node/issues/22653
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/url.md')
-rw-r--r-- | doc/api/url.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/url.md b/doc/api/url.md index eaa146a8211..d6f41a33f50 100644 --- a/doc/api/url.md +++ b/doc/api/url.md @@ -1286,7 +1286,7 @@ const myURL = new URL('https://%CF%80.example.com/foo'); console.log(myURL.href); // Prints https://xn--1xa.example.com/foo console.log(myURL.origin); -// Prints https://π.example.com +// Prints https://xn--1xa.example.com ``` [`Error`]: errors.html#errors_class_error |