]> Cypherpunks repositories - gostls13.git/commitdiff
http: doc nits
authorBrad Fitzpatrick <bradfitz@golang.org>
Fri, 4 Nov 2011 03:37:02 +0000 (20:37 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 4 Nov 2011 03:37:02 +0000 (20:37 -0700)
Remove the last two "convenience" mentions.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5344041

src/pkg/net/http/client.go
src/pkg/net/http/header.go

index 503cc897a1044ac41ed68c4b45acef7066a864de..17b4adc17ec585ede29d034eb4affa96bbf6e1e6 100644 (file)
@@ -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)
 }
index 6be6016641d00a603a253fccdcd53a7909985f2d..b107c312da782667fdfe8d627e88a3f44965fc34 100644 (file)
@@ -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)
 }