1
0
mirror of https://github.com/golang/go synced 2024-11-25 03:57:56 -07:00

http: doc nits

Remove the last two "convenience" mentions.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5344041
This commit is contained in:
Brad Fitzpatrick 2011-11-03 20:37:02 -07:00
parent 3b901f4515
commit 0865c57f25
2 changed files with 3 additions and 3 deletions

View File

@ -143,7 +143,7 @@ func shouldRedirect(statusCode int) bool {
// //
// Caller should close r.Body when done reading from it. // 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) { func Get(url string) (r *Response, err error) {
return DefaultClient.Get(url) return DefaultClient.Get(url)
} }

View File

@ -30,8 +30,8 @@ func (h Header) Set(key, value string) {
// Get gets the first value associated with the given key. // Get gets the first value associated with the given key.
// If there are no values associated with the key, Get returns "". // If there are no values associated with the key, Get returns "".
// Get is a convenience method. For more complex queries, // To access multiple values of a key, access the map directly
// access the map directly. // with CanonicalHeaderKey.
func (h Header) Get(key string) string { func (h Header) Get(key string) string {
return textproto.MIMEHeader(h).Get(key) return textproto.MIMEHeader(h).Get(key)
} }