Commit 699864b6 authored by Rob Pike's avatar Rob Pike

encoding/line: fix error call (missing argument)

R=agl1, rsc
CC=golang-dev
https://golang.org/cl/3861044
parent 29cbad6c
......@@ -44,10 +44,10 @@ func testLineReader(t *testing.T, input []byte) {
for {
line, isPrefix, err := l.ReadLine()
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 {
t.Errorf("ReadLine returned prefix\n")
t.Errorf("ReadLine returned prefix")
}
if err != nil {
if err != os.EOF {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment