]> Cypherpunks repositories - gostls13.git/commitdiff
net/url: clarify documentation about (*URL).String
authorAgniva De Sarker <agnivade@yahoo.co.in>
Fri, 21 Dec 2018 08:48:50 +0000 (14:18 +0530)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 2 Jan 2019 16:41:22 +0000 (16:41 +0000)
Fixes #23669

Change-Id: Ib7f0aab0b066f778a3097583f432f8092310fb81
Reviewed-on: https://go-review.googlesource.com/c/155598
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/url/url.go

index 702f9124bfe8da1f259e0d947bf6d401525f716b..d84c95adb031899749e8a4d4575f8968a24ef4de 100644 (file)
@@ -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: