]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: fix typo in doc string
authorJoe Kyo <xunianzu@gmail.com>
Tue, 31 Oct 2017 09:24:44 +0000 (09:24 +0000)
committerTom Bergan <tombergan@google.com>
Wed, 1 Nov 2017 16:17:11 +0000 (16:17 +0000)
Change-Id: I4542f6c095a35a4dec03c67c45a75a155197eb56
Reviewed-on: https://go-review.googlesource.com/74650
Reviewed-by: Tom Bergan <tombergan@google.com>
src/net/http/client.go

index 3ed666e8153e0ea7131091eb8181aa518a98d031..65e0fa2bc4142dfa646d9ca8cbf8585ca8df6586 100644 (file)
@@ -760,7 +760,7 @@ func PostForm(url string, data url.Values) (resp *Response, err error) {
 // with data's keys and values URL-encoded as the request body.
 //
 // The Content-Type header is set to application/x-www-form-urlencoded.
-// To set other headers, use NewRequest and DefaultClient.Do.
+// To set other headers, use NewRequest and Client.Do.
 //
 // When err is nil, resp always contains a non-nil resp.Body.
 // Caller should close resp.Body when done reading from it.