Skip to content

Commit

Permalink
net/url: clarify documentation about (*URL).String
Browse files Browse the repository at this point in the history
Fixes golang#23669

Change-Id: Ib7f0aab0b066f778a3097583f432f8092310fb81
Reviewed-on: https://go-review.googlesource.com/c/155598
Reviewed-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
agnivade authored and bradfitz committed Jan 2, 2019
1 parent ad16449 commit 04eda1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/net/url/url.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 04eda1a

Please sign in to comment.