From 8691f90cc53f1ebcd27d82c71432ca873a3744ca Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Tue, 9 Apr 2013 10:17:35 -0700 Subject: [PATCH] io: document non-guarantees of io.Closer R=r, golang-dev CC=golang-dev https://golang.org/cl/8575043 --- src/pkg/io/io.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pkg/io/io.go b/src/pkg/io/io.go index 23d05e575a..f901afe423 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 } -- 2.50.0