Commit 01718225 authored by Erik Aigner's avatar Erik Aigner Committed by Brad Fitzpatrick

net/http: Fix typo in MaxBytesReader comment

Change-Id: Ida064ff422d077d508ef94f52fc813daa6277a99
Reviewed-on: https://go-review.googlesource.com/3933Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 7e3b30ae
...@@ -673,7 +673,7 @@ func ReadRequest(b *bufio.Reader) (req *Request, err error) { ...@@ -673,7 +673,7 @@ func ReadRequest(b *bufio.Reader) (req *Request, err error) {
// MaxBytesReader is similar to io.LimitReader but is intended for // MaxBytesReader is similar to io.LimitReader but is intended for
// limiting the size of incoming request bodies. In contrast to // limiting the size of incoming request bodies. In contrast to
// io.LimitReader, MaxBytesReader's result is a ReadCloser, returns a // 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. // underlying reader when its Close method is called.
// //
// MaxBytesReader prevents clients from accidentally or maliciously // MaxBytesReader prevents clients from accidentally or maliciously
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment