From 8794476f1aacb5efe2069749a5659ebbcb9e6a3a Mon Sep 17 00:00:00 2001 From: Aleksandr Razumov Date: Mon, 7 Aug 2023 22:59:04 +0300 Subject: [PATCH] chore: fix lint issue --- w.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/w.go b/w.go index c0a4347..005a39a 100644 --- a/w.go +++ b/w.go @@ -55,11 +55,12 @@ func (w *Writer) ResetWriter(out io.Writer) { } // Grow grows the underlying buffer. -// It calls (*bytes.Buffer).Grow(n int) on b.Buf -func (b *Writer) Grow(n int) { - buf := bytes.NewBuffer(b.Buf) +// +// Calls (*bytes.Buffer).Grow(n int) on w.Buf. +func (w *Writer) Grow(n int) { + buf := bytes.NewBuffer(w.Buf) buf.Grow(n) - b.Buf = buf.Bytes() + w.Buf = buf.Bytes() } // byte writes a single byte.