]> Cypherpunks repositories - gostls13.git/commit
encoding/csv: document that Writer is buffered
authorBrian Kessler <brian.m.kessler@gmail.com>
Fri, 1 Feb 2019 05:05:49 +0000 (22:05 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 4 Mar 2019 05:47:35 +0000 (05:47 +0000)
commit0db5534d7acb3c5ce39145ec3aaa490cca1a81ea
tree265ae962d72d67b955ccbe66b803074284bec102
parent4fb900e9ca1f08c57b074e7bf6a7eab90b92c898
encoding/csv: document that Writer is buffered

Add documentation that individual Write calls are buffered and
copy documentation from bufio.Writer notifying the user to call
Flush and Error when all writes are complete. Remove reference
to "file" since the implementation is general and allows any
io.Writer.

Fixes #30045

Change-Id: I50165470e548f296494e764707fbabe36c665015
Reviewed-on: https://go-review.googlesource.com/c/160680
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/encoding/csv/writer.go