diff --git a/io/linereader/linereader.go b/io/linereader/linereader.go index e60719b..b0f2174 100644 --- a/io/linereader/linereader.go +++ b/io/linereader/linereader.go @@ -32,7 +32,7 @@ func NewInto(dst *T, reader io.Reader, blockSize uint) { func (lr *T) Read(dst []byte) (n int, err error) { n, discarded, err := lr.ReadExtra(dst) if discarded != 0 { - return n + discarded, errors.New("line too long") + return n, errors.New("line too long") } return n, err }