mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
strings: correct NewReader documentation
This commit is contained in:
parent
623ebad685
commit
a16a60b0f1
1 changed files with 1 additions and 1 deletions
|
|
@ -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} }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue