]> Cypherpunks repositories - gostls13.git/commitdiff
bufio: clarify WriteTo docs
authorSam Whited <sam@samwhited.com>
Mon, 5 Jun 2017 14:21:10 +0000 (09:21 -0500)
committerIan Lance Taylor <iant@golang.org>
Thu, 8 Jun 2017 17:15:35 +0000 (17:15 +0000)
Fixes #19092

Change-Id: I7c0fde6a4cf460017619dbcce1c1ddaa7af1022a
Reviewed-on: https://go-review.googlesource.com/44811
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/bufio/bufio.go

index 936854b24f35ea6c176c86b74f697b588f9ab708..bbdfad4ba8f987a58526eac51dc3ad9c323abebe 100644 (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 {