From 9d28b1df80969773df1087b17497bd1756d6489c Mon Sep 17 00:00:00 2001 From: Deokjin Kim Date: Fri, 23 Dec 2022 20:17:34 +0900 Subject: [PATCH] doc: fix wrong output of example in `url.protocol` Tailing slash of url.href is ommited. --- doc/api/url.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/url.md b/doc/api/url.md index 389571ee94fba9..86c38f6b2e852d 100644 --- a/doc/api/url.md +++ b/doc/api/url.md @@ -490,7 +490,7 @@ For instance, changing from `http` to `https` works: const u = new URL('http://example.org'); u.protocol = 'https'; console.log(u.href); -// https://example.org +// https://example.org/ ``` However, changing from `http` to a hypothetical `fish` protocol does not @@ -500,7 +500,7 @@ because the new protocol is not special. const u = new URL('http://example.org'); u.protocol = 'fish'; console.log(u.href); -// http://example.org +// http://example.org/ ``` Likewise, changing from a non-special protocol to a special protocol is also