From a16a60b0f1e25d19e05e664c5b41ca57c4fcd9b2 Mon Sep 17 00:00:00 2001 From: Jabar Asadi Date: Tue, 9 May 2023 16:24:43 +0200 Subject: [PATCH] strings: correct NewReader documentation --- src/strings/reader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strings/reader.go b/src/strings/reader.go index 6f069a62ca..04f31a1e8f 100644 --- a/src/strings/reader.go +++ b/src/strings/reader.go @@ -156,5 +156,5 @@ func (r *Reader) WriteTo(w io.Writer) (n int64, err error) { func (r *Reader) Reset(s string) { *r = Reader{s, 0, -1} } // NewReader returns a new Reader reading from s. -// It is similar to bytes.NewBufferString but more efficient and read-only. +// It is similar to bytes.NewBufferString but more efficient and non-writable. func NewReader(s string) *Reader { return &Reader{s, 0, -1} }