]> Cypherpunks repositories - gostls13.git/commit
io: document that a Writer must not write to p
authorBrad Fitzpatrick <bradfitz@golang.org>
Wed, 16 Apr 2014 00:14:03 +0000 (17:14 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 16 Apr 2014 00:14:03 +0000 (17:14 -0700)
commita1ae3a05363050dc4bd809c367ba764b5d11e811
tree9db05ad5a93c6d601247e099f5a675d294731d1a
parent44f96d4488fb6f11e7b1a3b7197fd47267e00dd9
io: document that a Writer must not write to p

Per golang-nuts question. Writing to p breaks
other writers (e.g. io.MultiWriter).

Make this explicit.

LGTM=gri, r, rsc
R=r, rsc, gri, joshlf13
CC=golang-codereviews
https://golang.org/cl/87780046
src/pkg/io/io.go