aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/net/http/httptest/recorder.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/http/httptest/recorder.go b/src/net/http/httptest/recorder.go
index dd27c4dc63..24653031bd 100644
--- a/src/net/http/httptest/recorder.go
+++ b/src/net/http/httptest/recorder.go
@@ -29,8 +29,8 @@ type ResponseRecorder struct {
// automatic Content-Type), use the Result method.
HeaderMap http.Header
- // Body is the buffer that a Handler's Write calls are sent to.
- // If nil, the Writes are silently discard.
+ // Body is the buffer to which the Handler's Write calls are sent.
+ // If nil, the Writes are silently discarded.
Body *bytes.Buffer
// Flushed is whether the Handler called Flush.