From 7097ed7337135c68b3c721a4963ef936e003e487 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Fri, 1 Nov 2013 11:20:21 +1100 Subject: [PATCH] [release-branch.go1.2] net/url: fix Encode doc comment MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ««« 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 | 4 ++-- 1 file 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 "" -- 2.50.0