Commit 0865c57f authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

http: doc nits

Remove the last two "convenience" mentions.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5344041
parent 3b901f45
......@@ -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)
}
......
......@@ -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)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment