]> Cypherpunks repositories - gostls13.git/commitdiff
net/http/httptest: doc tweaks
authorBrad Fitzpatrick <bradfitz@golang.org>
Wed, 26 Oct 2016 22:49:13 +0000 (22:49 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 26 Oct 2016 22:55:05 +0000 (22:55 +0000)
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>
src/net/http/httptest/recorder.go

index dd27c4dc63859ac0e5fe84f5e06b37cc9b5cb099..24653031bd6fd99cd08ebfb2a07ea3eb0074db2e 100644 (file)
@@ -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.