]> Cypherpunks repositories - gostls13.git/commitdiff
net/url: fix docs for URL.String
authorShenghou Ma <minux@golang.org>
Tue, 24 Mar 2015 04:04:42 +0000 (00:04 -0400)
committerMinux Ma <minux@golang.org>
Tue, 24 Mar 2015 23:56:43 +0000 (23:56 +0000)
Fixes #10227.

Change-Id: I64d5522e76da5a717e3c4169405e5ef35d6c262e
Signed-off-by: Shenghou Ma <minux@golang.org>
Reviewed-on: https://go-review.googlesource.com/7974
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/url/url.go

index 737c95bab9891c9d590361864ff5e2327e62a238..0ad68ccc2bfa8b14868e511517f845721b193dcc 100644 (file)
@@ -443,7 +443,7 @@ func parseAuthority(authority string) (user *Userinfo, host string, err error) {
 // String reassembles the URL into a valid URL string.
 // The general form of the result is one of:
 //
-//     scheme:opaque
+//     scheme:opaque?query#fragment
 //     scheme://userinfo@host/path?query#fragment
 //
 // If u.Opaque is non-empty, String uses the first form;