aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2011-11-03 20:37:02 -0700
committerBrad Fitzpatrick <bradfitz@golang.org>2011-11-03 20:37:02 -0700
commit0865c57f252f8c192526833b9de07446477b19f1 (patch)
tree94d80f6f6a0e24961d06d167363c4c7cba23ade7
parent3b901f4515a20c76ea3b120d3c9b1877263a72da (diff)
downloadgo-0865c57f252f8c192526833b9de07446477b19f1.tar.gz
go-0865c57f252f8c192526833b9de07446477b19f1.zip
http: doc nits
Remove the last two "convenience" mentions. R=golang-dev, r CC=golang-dev https://golang.org/cl/5344041
-rw-r--r--src/pkg/net/http/client.go2
-rw-r--r--src/pkg/net/http/header.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/net/http/client.go b/src/pkg/net/http/client.go
index 503cc897a1..17b4adc17e 100644
--- a/src/pkg/net/http/client.go
+++ b/src/pkg/net/http/client.go
@@ -143,7 +143,7 @@ func shouldRedirect(statusCode int) bool {
//
// Caller should close r.Body when done reading from it.
//
-// Get is a convenience wrapper around DefaultClient.Get.
+// Get is a wrapper around DefaultClient.Get.
func Get(url string) (r *Response, err error) {
return DefaultClient.Get(url)
}
diff --git a/src/pkg/net/http/header.go b/src/pkg/net/http/header.go
index 6be6016641..b107c312da 100644
--- a/src/pkg/net/http/header.go
+++ b/src/pkg/net/http/header.go
@@ -30,8 +30,8 @@ func (h Header) Set(key, value string) {
// Get gets the first value associated with the given key.
// If there are no values associated with the key, Get returns "".
-// Get is a convenience method. For more complex queries,
-// access the map directly.
+// To access multiple values of a key, access the map directly
+// with CanonicalHeaderKey.
func (h Header) Get(key string) string {
return textproto.MIMEHeader(h).Get(key)
}