]> Cypherpunks repositories - gostls13.git/commit
io: make CopyBuffer docs state when buf is not used
authorsandyskies <chenmingjie0828@163.com>
Mon, 21 Oct 2019 17:32:13 +0000 (17:32 +0000)
committerEmmanuel Odeke <emm.odeke@gmail.com>
Mon, 21 Oct 2019 17:47:24 +0000 (17:47 +0000)
commit03978a97e5336c0ef46cec9b4f0733e9d897d083
tree9caefb127f04343e532f3d02dcc446ab2e743cba
parent58b031949b26efa92a80f39cf68a189b9c0ff07f
io: make CopyBuffer docs state when buf is not used

Document that if either src implements the WriteTo interface
or if dst implements the ReaderFrom interface, then
buf will not be used.

Fixes #32276

Change-Id: Id0a69c90e255e694e7ec9f79ffe4d8391441e59e
GitHub-Last-Rev: 750e7e86d5d9b985fae7f2329fd219cacf72a62b
GitHub-Pull-Request: golang/go#32279
Reviewed-on: https://go-review.googlesource.com/c/go/+/179137
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
src/io/io.go