]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1.2] net/url: fix Encode doc comment
authorAndrew Gerrand <adg@golang.org>
Fri, 1 Nov 2013 00:20:21 +0000 (11:20 +1100)
committerAndrew Gerrand <adg@golang.org>
Fri, 1 Nov 2013 00:20:21 +0000 (11:20 +1100)
««« CL 16430043 / f9af8b83c78c
net/url: fix Encode doc comment

Encoded query strings are always sorted by key; the example wasn't.

R=golang-dev, dsymonds, minux.ma, bradfitz
CC=golang-dev
https://golang.org/cl/16430043
»»»

R=golang-dev
CC=golang-dev
https://golang.org/cl/20480044

src/pkg/net/url/url.go

index 597cb51c883074434b10eca555e5ba41a88e1dbf..3b3787202b7dca6c2f6d4df9afed6b9eb9e96a41 100644 (file)
@@ -558,8 +558,8 @@ func parseQuery(m Values, query string) (err error) {
        return err
 }
 
-// Encode encodes the values into ``URL encoded'' form.
-// e.g. "foo=bar&bar=baz"
+// Encode encodes the values into ``URL encoded'' form
+// ("bar=baz&foo=quux") sorted by key.
 func (v Values) Encode() string {
        if v == nil {
                return ""