summaryrefslogtreecommitdiff
path: root/libgo/go/io/io.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/io/io.go')
-rw-r--r--libgo/go/io/io.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/libgo/go/io/io.go b/libgo/go/io/io.go
index 9e4b86594d8..28dab08e46c 100644
--- a/libgo/go/io/io.go
+++ b/libgo/go/io/io.go
@@ -233,7 +233,9 @@ type WriterAt interface {
// ByteReader is the interface that wraps the ReadByte method.
//
-// ReadByte reads and returns the next byte from the input.
+// ReadByte reads and returns the next byte from the input or
+// any error encountered. If ReadByte returns an error, no input
+// byte was consumed, and the returned byte value is undefined.
type ByteReader interface {
ReadByte() (byte, error)
}