Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
699864b6
Commit
699864b6
authored
Jan 12, 2011
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
encoding/line: fix error call (missing argument)
R=agl1, rsc CC=golang-dev
https://golang.org/cl/3861044
parent
29cbad6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
line_test.go
src/pkg/encoding/line/line_test.go
+2
-2
No files found.
src/pkg/encoding/line/line_test.go
View file @
699864b6
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment