From: Andrew Gerrand Date: Fri, 25 Oct 2013 20:00:22 +0000 (+0300) Subject: net/url: fix Encode doc comment X-Git-Tag: go1.3beta1~1384 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6ea5687b46b080304584fbc80c3e2dd18f2e1c43;p=gostls13.git 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 --- diff --git a/src/pkg/net/url/url.go b/src/pkg/net/url/url.go index 597cb51c88..3b3787202b 100644 --- a/src/pkg/net/url/url.go +++ b/src/pkg/net/url/url.go @@ -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 ""