mirror of
https://github.com/golang/go
synced 2024-11-22 03:54:39 -07:00
encoding/line: fix error call (missing argument)
R=agl1, rsc CC=golang-dev https://golang.org/cl/3861044
This commit is contained in:
parent
29cbad6c72
commit
699864b696
@ -44,10 +44,10 @@ func testLineReader(t *testing.T, input []byte) {
|
|||||||
for {
|
for {
|
||||||
line, isPrefix, err := l.ReadLine()
|
line, isPrefix, err := l.ReadLine()
|
||||||
if len(line) > 0 && err != nil {
|
if len(line) > 0 && err != nil {
|
||||||
t.Errorf("ReadLine returned both data and error: %s\n")
|
t.Errorf("ReadLine returned both data and error: %s", err)
|
||||||
}
|
}
|
||||||
if isPrefix {
|
if isPrefix {
|
||||||
t.Errorf("ReadLine returned prefix\n")
|
t.Errorf("ReadLine returned prefix")
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if err != os.EOF {
|
if err != os.EOF {
|
||||||
|
Loading…
Reference in New Issue
Block a user