Skip to content

Commit 9e6ad46

Browse files
180909ianlancetaylor
authored andcommitted
net/http: fix spelling in documentation
Change-Id: I8b0924300eafe27de98975512a78a6527a92e446 Reviewed-on: https://go-review.googlesource.com/c/go/+/354729 Reviewed-by: Ian Lance Taylor <[email protected]> Trust: Damien Neil <[email protected]>
1 parent 85493d5 commit 9e6ad46

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/net/http/httputil/dump.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ func DumpRequest(req *http.Request, body bool) ([]byte, error) {
292292
// can detect that the lack of body was intentional.
293293
var errNoBody = errors.New("sentinel error value")
294294

295-
// failureToReadBody is a io.ReadCloser that just returns errNoBody on
295+
// failureToReadBody is an io.ReadCloser that just returns errNoBody on
296296
// Read. It's swapped in when we don't actually want to consume
297297
// the body, but need a non-nil one, and want to distinguish the
298298
// error from reading the dummy body.

src/net/http/serve_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6557,7 +6557,7 @@ func TestDisableKeepAliveUpgrade(t *testing.T) {
65576557

65586558
rwc, ok := resp.Body.(io.ReadWriteCloser)
65596559
if !ok {
6560-
t.Fatalf("Response.Body is not a io.ReadWriteCloser: %T", resp.Body)
6560+
t.Fatalf("Response.Body is not an io.ReadWriteCloser: %T", resp.Body)
65616561
}
65626562

65636563
_, err = rwc.Write([]byte("hello"))

src/net/http/transfer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@ func (b *body) registerOnHitEOF(fn func()) {
10301030
b.onHitEOF = fn
10311031
}
10321032

1033-
// bodyLocked is a io.Reader reading from a *body when its mutex is
1033+
// bodyLocked is an io.Reader reading from a *body when its mutex is
10341034
// already held.
10351035
type bodyLocked struct {
10361036
b *body

0 commit comments

Comments
 (0)