1
0
mirror of https://github.com/golang/go synced 2024-09-25 07:30:13 -06:00

net/url: correct documentation of Values.Add

Fixes #7816.

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/98160043
This commit is contained in:
Ian Lance Taylor 2014-05-09 15:49:21 -07:00
parent cdabca325e
commit e3eee85b0d

View 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)