Skip to content

Commit f5a66b5

Browse files
committed
* fixed returned values (comment golang#118)
1 parent 14f617b commit f5a66b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

txtar/archive.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func findFileMarker(data, lineSep []byte) (before []byte, name string, lineSepar
134134
}
135135
j := bytes.Index(data[i:], newlineMarker)
136136
if j < 0 {
137-
return fixNL(data, lineSep), "", lineSeparator, nil
137+
return fixNL(data, lineSep), "", lineSep, nil
138138
}
139139
i += j + 1 // positioned at start of new possible marker
140140
}

0 commit comments

Comments
 (0)