From 04eda1a94da4dfec61e65f094583b85e556306f3 Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Fri, 21 Dec 2018 14:18:50 +0530 Subject: [PATCH] net/url: clarify documentation about (*URL).String Fixes #23669 Change-Id: Ib7f0aab0b066f778a3097583f432f8092310fb81 Reviewed-on: https://go-review.googlesource.com/c/155598 Reviewed-by: Brad Fitzpatrick --- src/net/url/url.go | 1 + 1 file changed, 1 insertion(+) 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: -- 2.48.1