diff options
author | Сковорода Никита Андреевич <chalkerx@gmail.com> | 2018-10-10 03:05:16 +0300 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2018-11-29 19:38:32 +0300 |
commit | 5bea331d6dd22e62ed0de8390099dcdef75c37e2 (patch) | |
tree | c8eba46bb1599942a7860d29428af6e183eba777 /doc | |
parent | 3db26d9f2f93e1cb203aa241934b97d0c48de514 (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')
-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 f299864d5c0..84f9b3684ff 100644 --- a/doc/api/url.md +++ b/doc/api/url.md @@ -1269,7 +1269,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 |