From 6ea5687b46b080304584fbc80c3e2dd18f2e1c43 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Fri, 25 Oct 2013 23:00:22 +0300 Subject: [PATCH] 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 --- 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