strings: correct NewReader documentation

This commit is contained in:
Jabar Asadi 2023-05-09 16:24:43 +02:00
parent 623ebad685
commit a16a60b0f1
No known key found for this signature in database
GPG key ID: B865AD8DBA1BB44E

View file

@ -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} }