From f697cf22558157b9c0bc287287c5668c758f16c9 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Wed, 26 Oct 2016 22:49:13 +0000 Subject: [PATCH] net/http/httptest: doc tweaks MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/net/http/httptest/recorder.go | 4 ++-- 1 file 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. -- 2.48.1