]> Cypherpunks repositories - gostls13.git/commitdiff
net/url: correct documentation of Values.Add
authorIan Lance Taylor <iant@golang.org>
Fri, 9 May 2014 22:49:21 +0000 (15:49 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 9 May 2014 22:49:21 +0000 (15:49 -0700)
Fixes #7816.

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/98160043

src/pkg/net/url/url.go

index 3b3787202b7dca6c2f6d4df9afed6b9eb9e96a41..75f650a2756b53f79dccd4e093782afabc8a0d39 100644 (file)
@@ -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)