summaryrefslogtreecommitdiff
path: root/src/pkg/io/bytebuffer.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/io/bytebuffer.go')
-rw-r--r--src/pkg/io/bytebuffer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/io/bytebuffer.go b/src/pkg/io/bytebuffer.go
index 000c05352..11c8a1a87 100644
--- a/src/pkg/io/bytebuffer.go
+++ b/src/pkg/io/bytebuffer.go
@@ -103,10 +103,10 @@ func (b *ByteBuffer) Read(p []byte) (n int, err os.Error) {
}
// ReadByte reads and returns the next byte from the buffer.
-// If no byte is available, it returns error ErrEOF.
+// If no byte is available, it returns error os.EOF.
func (b *ByteBuffer) ReadByte() (c byte, err os.Error) {
if b.off >= len(b.buf) {
- return 0, ErrEOF;
+ return 0, os.EOF;
}
c = b.buf[b.off];
b.off++;