Update utf8reader.go
This commit is contained in:
parent
9bf2046a64
commit
79a7fa55ee
|
@ -117,7 +117,7 @@ func (b *Reader) ReadData() (line string, err error) {
|
||||||
line = string(b.buf[b.r : b.r+index])
|
line = string(b.buf[b.r : b.r+index])
|
||||||
b.r += index
|
b.r += index
|
||||||
} else {
|
} else {
|
||||||
panic("known error")
|
panic("no utf8 char found")
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue