aboutsummaryrefslogtreecommitdiff
path: root/src/net/http/httptest
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2016-10-26 22:49:13 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2016-10-26 22:55:05 +0000
commitf697cf22558157b9c0bc287287c5668c758f16c9 (patch)
tree015c8156c08d2b6fa3f7eb47ac42ee7e8a60f433 /src/net/http/httptest
parent8e4ea2f5e8ee2b9c455adb329d96fb13cd3c64da (diff)
downloadgo-f697cf22558157b9c0bc287287c5668c758f16c9.tar.xz
net/http/httptest: doc tweaks
From lost-in-flight comments on CL 32190. Change-Id: I2029cbac6d24b5944a796b359080011ec3a8da92 Reviewed-on: https://go-review.googlesource.com/32210 Reviewed-by: Caleb Spare <cespare@gmail.com> Reviewed-by: Martin Möhrmann <martisch@uos.de>
Diffstat (limited to 'src/net/http/httptest')
-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.