diff --git a/src/net/url/url.go b/src/net/url/url.go index 702f9124bf..d84c95adb0 100644 --- a/src/net/url/url.go +++ b/src/net/url/url.go @@ -755,6 +755,7 @@ func validOptionalPort(port string) bool { // // If u.Opaque is non-empty, String uses the first form; // otherwise it uses the second form. +// Any non-ASCII characters in host are escaped. // To obtain the path, String uses u.EscapedPath(). // // In the second form, the following rules apply: