summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclsr <clsr@clsr.net>2023-11-05 04:47:26 +0000
committerclsr <clsr@clsr.net>2023-11-05 04:47:26 +0000
commit14fc8e6aa500a2e962274c87af8f8e14fdce0270 (patch)
tree18c4b680ddc5e86b873f92f0f1d2b8a9b08328e9
parent62ed9f3969e6d38eab9f843c398e97cdb6586329 (diff)
downloadcnp-go-master.tar.gz
cnp-go-master.zip
Fix minor documentation mistakeHEADmaster
-rw-r--r--message.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/message.go b/message.go
index ccd455f..d3a222d 100644
--- a/message.go
+++ b/message.go
@@ -77,7 +77,7 @@ func (msg *Message) Close() error {
// ComputeLength sets the length header parameter based on the message body.
// First, msg.TryComputeLength() is attempted; if that fails, the request is
-// fully read into a bytes.Buffer and msg.Body is set to it.
+// fully read into a bytes.Reader and msg.Body is set to it.
func (msg *Message) ComputeLength() error {
if !msg.TryComputeLength() {
buf, err := ioutil.ReadAll(msg.Body)