1
0
mirror of https://github.com/json-iterator/go.git synced 2025-07-03 23:30:41 +02:00

#185 add jsoniter.Valid

This commit is contained in:
Tao Wen
2017-10-10 08:57:02 +08:00
parent 0149a5cf4a
commit 6240e1e798
9 changed files with 36 additions and 17 deletions

View File

@ -42,7 +42,7 @@ func (iter *Iterator) ReadArrayCB(callback func(*Iterator) bool) (ret bool) {
c = iter.nextToken()
}
if c != ']' {
iter.ReportError("ReadArrayCB", "expect ] in the end, but found " + string([]byte{c}))
iter.ReportError("ReadArrayCB", "expect ] in the end, but found "+string([]byte{c}))
return false
}
return true