summaryrefslogtreecommitdiff
path: root/src/net/http/request.go
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2019-12-12 17:31:11 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2019-12-12 17:47:19 +0000
commit100bf440b9a69c6dce8daeebed038d607c963b8f (patch)
treede942c4e781a874f9cde6aa87989b8d0212098bd /src/net/http/request.go
parentc39cd41e5e0c8cdbc910e0e0214a360ec7829c07 (diff)
downloadgo-git-100bf440b9a69c6dce8daeebed038d607c963b8f.tar.gz
net/http: fix some awkward wording in Request.WithContext docs
Change-Id: Ib37db42c7f1fd6aa55f70fd2d65d56bb2ae6d26a Reviewed-on: https://go-review.googlesource.com/c/go/+/211098 Reviewed-by: Bryan C. Mills <bcmills@google.com>
Diffstat (limited to 'src/net/http/request.go')
-rw-r--r--src/net/http/request.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/http/request.go b/src/net/http/request.go
index 72261a1bd5..8dd9fe199f 100644
--- a/src/net/http/request.go
+++ b/src/net/http/request.go
@@ -350,8 +350,8 @@ func (r *Request) Context() context.Context {
// sending the request, and reading the response headers and body.
//
// To create a new request with a context, use NewRequestWithContext.
-// To change the context of a request (such as an incoming) you then
-// also want to modify to send back out, use Request.Clone. Between
+// To change the context of a request, such as an incoming request you
+// want to modify before sending back out, use Request.Clone. Between
// those two uses, it's rare to need WithContext.
func (r *Request) WithContext(ctx context.Context) *Request {
if ctx == nil {