]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: Fix typo in MaxBytesReader comment
authorErik Aigner <aigner.erik@gmail.com>
Thu, 5 Feb 2015 07:07:18 +0000 (08:07 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 5 Feb 2015 16:38:10 +0000 (16:38 +0000)
Change-Id: Ida064ff422d077d508ef94f52fc813daa6277a99
Reviewed-on: https://go-review.googlesource.com/3933
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/request.go

index 63d7d44aa0fb803fce4932c15b312ad877a8b4d9..f7a7f19b9b2621f25931b738231d93cc263d6584 100644 (file)
@@ -673,7 +673,7 @@ func ReadRequest(b *bufio.Reader) (req *Request, err error) {
 // MaxBytesReader is similar to io.LimitReader but is intended for
 // limiting the size of incoming request bodies. In contrast to
 // io.LimitReader, MaxBytesReader's result is a ReadCloser, returns a
-// non-EOF error for a Read beyond the limit, and Closes the
+// non-EOF error for a Read beyond the limit, and closes the
 // underlying reader when its Close method is called.
 //
 // MaxBytesReader prevents clients from accidentally or maliciously