summaryrefslogtreecommitdiff
path: root/src/lib/bufio_test.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2009-03-07 16:57:01 -0800
committerRob Pike <r@golang.org>2009-03-07 16:57:01 -0800
commitaedc4374117e1dc1ee1f7fa8989a925f706172d0 (patch)
tree7dc0ef84f84be0a50d94a8b0999fe779a7cfd3de /src/lib/bufio_test.go
parentaee6e93cd2b901caf9960d6d5636b746c1daf0ca (diff)
downloadgolang-aedc4374117e1dc1ee1f7fa8989a925f706172d0.tar.gz
document bufio
R=rsc DELTA=61 (27 added, 2 deleted, 32 changed) OCL=25877 CL=25889
Diffstat (limited to 'src/lib/bufio_test.go')
-rw-r--r--src/lib/bufio_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/bufio_test.go b/src/lib/bufio_test.go
index e94add240..4afad8340 100644
--- a/src/lib/bufio_test.go
+++ b/src/lib/bufio_test.go
@@ -108,7 +108,7 @@ func readLines(b *BufRead) string {
s := "";
for {
s1, e := b.ReadLineString('\n', true);
- if e == EndOfFile {
+ if e == io.ErrEOF {
break
}
if e != nil {
@@ -125,7 +125,7 @@ func readBytes(buf *BufRead) string {
nb := 0;
for {
c, e := buf.ReadByte();
- if e == EndOfFile {
+ if e == io.ErrEOF {
break
}
if e != nil {
@@ -145,7 +145,7 @@ func reads(buf *BufRead, m int) string {
for {
n, e := buf.Read(b[nb:nb+m]);
nb += n;
- if e == EndOfFile {
+ if e == io.ErrEOF {
break
}
}