summaryrefslogtreecommitdiff
path: root/libgo/go/io/io.go
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2012-11-21 07:03:38 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2012-11-21 07:03:38 +0000
commitfabcaa8df3d6eb852b87821ef090d31d222870b7 (patch)
tree72455aea0286937aa08cc141e5efc800e4626577 /libgo/go/io/io.go
parenta51fb17f48428e7cfc96a72a9f9f87901363bb6b (diff)
downloadgcc-fabcaa8df3d6eb852b87821ef090d31d222870b7.tar.gz
libgo: Update to current version of master library.
From-SVN: r193688
Diffstat (limited to 'libgo/go/io/io.go')
-rw-r--r--libgo/go/io/io.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/libgo/go/io/io.go b/libgo/go/io/io.go
index 5187eff70a9..bddb701786b 100644
--- a/libgo/go/io/io.go
+++ b/libgo/go/io/io.go
@@ -216,6 +216,11 @@ type ByteScanner interface {
UnreadByte() error
}
+// ByteWriter is the interface that wraps the WriteByte method.
+type ByteWriter interface {
+ WriteByte(c byte) error
+}
+
// RuneReader is the interface that wraps the ReadRune method.
//
// ReadRune reads a single UTF-8 encoded Unicode character