io: document non-guarantees of io.Closer

R=r, golang-dev
CC=golang-dev
https://golang.org/cl/8575043
This commit is contained in:
Brad Fitzpatrick 2013-04-09 10:17:35 -07:00
parent 0d932d434b
commit 8691f90cc5
1 changed files with 3 additions and 0 deletions

View File

@ -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
}