mirror of
https://github.com/golang/go
synced 2024-11-17 22:05:02 -07:00
bufio: clarify WriteTo docs
Fixes #19092 Change-Id: I7c0fde6a4cf460017619dbcce1c1ddaa7af1022a Reviewed-on: https://go-review.googlesource.com/44811 Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
8073f99ea3
commit
6a34765a16
@ -458,6 +458,7 @@ func (b *Reader) ReadString(delim byte) (string, error) {
|
||||
}
|
||||
|
||||
// WriteTo implements io.WriterTo.
|
||||
// This may make multiple calls to the Read method of the underlying Reader.
|
||||
func (b *Reader) WriteTo(w io.Writer) (n int64, err error) {
|
||||
n, err = b.writeBuf(w)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user