diff options
author | Rob Pike <r@golang.org> | 2009-03-07 16:57:01 -0800 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2009-03-07 16:57:01 -0800 |
commit | aedc4374117e1dc1ee1f7fa8989a925f706172d0 (patch) | |
tree | 7dc0ef84f84be0a50d94a8b0999fe779a7cfd3de /src/lib/strconv/fp_test.go | |
parent | aee6e93cd2b901caf9960d6d5636b746c1daf0ca (diff) | |
download | golang-aedc4374117e1dc1ee1f7fa8989a925f706172d0.tar.gz |
document bufio
R=rsc
DELTA=61 (27 added, 2 deleted, 32 changed)
OCL=25877
CL=25889
Diffstat (limited to 'src/lib/strconv/fp_test.go')
-rw-r--r-- | src/lib/strconv/fp_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/strconv/fp_test.go b/src/lib/strconv/fp_test.go index c6f67155c..7bc85a32c 100644 --- a/src/lib/strconv/fp_test.go +++ b/src/lib/strconv/fp_test.go @@ -6,6 +6,7 @@ package strconv import ( "bufio"; "fmt"; + "io"; "os"; "strconv"; "strings"; @@ -103,7 +104,7 @@ func TestFp(t *testing.T) { lineno := 0; for { line, err2 := b.ReadLineString('\n', false); - if err2 == bufio.EndOfFile { + if err2 == io.ErrEOF { break; } if err2 != nil { |