Skip to content

Commit

Permalink
net/http: fix some awkward wording in Request.WithContext docs
Browse files Browse the repository at this point in the history
Change-Id: Ib37db42c7f1fd6aa55f70fd2d65d56bb2ae6d26a
Reviewed-on: https://go-review.googlesource.com/c/go/+/211098
Reviewed-by: Bryan C. Mills <[email protected]>
  • Loading branch information
bradfitz committed Dec 12, 2019
1 parent c39cd41 commit 100bf44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/net/http/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 100bf44

Please sign in to comment.