Commit 04eda1a9 authored by Agniva De Sarker's avatar Agniva De Sarker Committed by Brad Fitzpatrick

net/url: clarify documentation about (*URL).String

Fixes #23669

Change-Id: Ib7f0aab0b066f778a3097583f432f8092310fb81
Reviewed-on: https://go-review.googlesource.com/c/155598Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent ad164494
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment