aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/bufio/bufio_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/bufio/bufio_test.go')
-rw-r--r--src/pkg/bufio/bufio_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/bufio/bufio_test.go b/src/pkg/bufio/bufio_test.go
index 6e5135df78..dfb9e3ac81 100644
--- a/src/pkg/bufio/bufio_test.go
+++ b/src/pkg/bufio/bufio_test.go
@@ -46,7 +46,7 @@ func readBytes(buf *Reader) string {
nb := 0;
for {
c, e := buf.ReadByte();
- if e == io.ErrEOF {
+ if e == os.EOF {
break
}
if e != nil {
@@ -88,7 +88,7 @@ func readLines(b *Reader) string {
s := "";
for {
s1, e := b.ReadLineString('\n', true);
- if e == io.ErrEOF {
+ if e == os.EOF {
break
}
if e != nil {
@@ -106,7 +106,7 @@ func reads(buf *Reader, m int) string {
for {
n, e := buf.Read(b[nb:nb+m]);
nb += n;
- if e == io.ErrEOF {
+ if e == os.EOF {
break
}
}