From 14fc8e6aa500a2e962274c87af8f8e14fdce0270 Mon Sep 17 00:00:00 2001 From: clsr Date: Sun, 5 Nov 2023 04:47:26 +0000 Subject: Fix minor documentation mistake --- message.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit