summaryrefslogtreecommitdiff
path: root/src/pkg/io
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2013-04-09 10:17:35 -0700
committerBrad Fitzpatrick <bradfitz@golang.org>2013-04-09 10:17:35 -0700
commit25898a19bac239ea40c42ddf724dcb62da612c7e (patch)
treed0c9e58ce3d41b2709ab881d96fb2cc5f4e1aedb /src/pkg/io
parent71912b885a880805bbc717b3da75b7ecd4b00ac9 (diff)
downloadgo-25898a19bac239ea40c42ddf724dcb62da612c7e.tar.gz
io: document non-guarantees of io.Closer
R=r, golang-dev CC=golang-dev https://codereview.appspot.com/8575043
Diffstat (limited to 'src/pkg/io')
-rw-r--r--src/pkg/io/io.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pkg/io/io.go b/src/pkg/io/io.go
index 23d05e575..f901afe42 100644
--- a/src/pkg/io/io.go
+++ b/src/pkg/io/io.go
@@ -70,6 +70,9 @@ type Writer interface {
}
// Closer is the interface that wraps the basic Close method.
+//
+// The behavior of Close after the first call is undefined.
+// Specific implementations may document their own behavior.
type Closer interface {
Close() error
}