From: Brad Fitzpatrick Date: Wed, 26 Oct 2016 22:49:13 +0000 (+0000) Subject: net/http/httptest: doc tweaks X-Git-Tag: go1.8beta1~584 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f697cf22558157b9c0bc287287c5668c758f16c9;p=gostls13.git 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 Reviewed-by: Martin Möhrmann --- 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.