1
0
mirror of https://github.com/golang/go synced 2024-11-18 00:24:48 -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:
Sam Whited 2017-06-05 09:21:10 -05:00 committed by Ian Lance Taylor
parent 8073f99ea3
commit 6a34765a16

View File

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