summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2014-05-09 15:49:21 -0700
committerIan Lance Taylor <iant@golang.org>2014-05-09 15:49:21 -0700
commit00ac46bd723623fe2698bd9731fea073d0615636 (patch)
treedf8554001db364248dde01d728125420b35fcb07 /src
parent389c5db10018b2c6f33835442540f30539177e06 (diff)
downloadgo-00ac46bd723623fe2698bd9731fea073d0615636.tar.gz
net/url: correct documentation of Values.Add
Fixes issue 7816. LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://codereview.appspot.com/98160043
Diffstat (limited to 'src')
-rw-r--r--src/pkg/net/url/url.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/net/url/url.go b/src/pkg/net/url/url.go
index 3b3787202..75f650a27 100644
--- a/src/pkg/net/url/url.go
+++ b/src/pkg/net/url/url.go
@@ -502,7 +502,7 @@ func (v Values) Set(key, value string) {
v[key] = []string{value}
}
-// Add adds the key to value. It appends to any existing
+// Add adds the value to key. It appends to any existing
// values associated with key.
func (v Values) Add(key, value string) {
v[key] = append(v[key], value)