From d2d384361f3f46766fa3fda6d77b10582ef40d33 Mon Sep 17 00:00:00 2001 From: Tidiane Date: Tue, 5 May 2026 18:32:24 +0000 Subject: [PATCH] Update Buffered method docs Co-authored-by: Copilot --- msgp/write.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msgp/write.go b/msgp/write.go index 55192222..871ceb18 100644 --- a/msgp/write.go +++ b/msgp/write.go @@ -182,7 +182,7 @@ func (mw *Writer) flush() error { // data to the underlying writer. func (mw *Writer) Flush() error { return mw.flush() } -// Buffered returns the number bytes in the write buffer +// Buffered returns the number of bytes available in the write buffer func (mw *Writer) Buffered() int { return len(mw.buf) - mw.wloc } func (mw *Writer) avail() int { return len(mw.buf) - mw.wloc }