File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -490,7 +490,7 @@ For instance, changing from `http` to `https` works:
490490const u = new URL (' http://example.org' );
491491u .protocol = ' https' ;
492492console .log (u .href );
493- // https://example.org
493+ // https://example.org/
494494```
495495
496496However, changing from ` http ` to a hypothetical ` fish ` protocol does not
@@ -500,7 +500,7 @@ because the new protocol is not special.
500500const u = new URL (' http://example.org' );
501501u .protocol = ' fish' ;
502502console .log (u .href );
503- // http://example.org
503+ // http://example.org/
504504```
505505
506506Likewise, changing from a non-special protocol to a special protocol is also
You can’t perform that action at this time.
0 commit comments