Skip to content

Commit 8016808

Browse files
broadybradfitz
authored andcommitted
net/http: fix typo in Request.GetBody's doc string
Change-Id: I84043b6fe4b20a2514d47217e07e44f26bec52ab Reviewed-on: https://go-review.googlesource.com/33973 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 80acfe9 commit 8016808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net/http/request.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ type Request struct {
171171
Body io.ReadCloser
172172

173173
// GetBody defines an optional func to return a new copy of
174-
// Body. It used for client requests when a redirect requires
174+
// Body. It is used for client requests when a redirect requires
175175
// reading the body more than once. Use of GetBody still
176176
// requires setting Body.
177177
//

0 commit comments

Comments
 (0)