diff options
author | Andrew Gerrand <adg@golang.org> | 2013-11-01 11:20:21 +1100 |
---|---|---|
committer | Andrew Gerrand <adg@golang.org> | 2013-11-01 11:20:21 +1100 |
commit | 7097ed7337135c68b3c721a4963ef936e003e487 (patch) | |
tree | bbf475b4e6b7e4fdbb26c24826336f2920ee98dc | |
parent | 5962673984b0ad20c0a24427857724f8541e141e (diff) | |
download | go-7097ed7337135c68b3c721a4963ef936e003e487.tar.gz go-7097ed7337135c68b3c721a4963ef936e003e487.zip |
[release-branch.go1.2] net/url: fix Encode doc comment
««« 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
-rw-r--r-- | src/pkg/net/url/url.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 "" |