This commit is contained in:
Masaaki Goshima 2020-08-14 16:00:29 +09:00
parent 03b55c1425
commit bbc1c41481
1 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ func (d *mapDecoder) decodeStream(s *stream, p uintptr) error {
return nil
}
if s.char() != ',' {
return errExpected("semicolon after object value", s.totalOffset())
return errExpected("comma after object value", s.totalOffset())
}
}
return nil
@ -168,7 +168,7 @@ func (d *mapDecoder) decode(buf []byte, cursor int64, p uintptr) (int64, error)
return cursor, nil
}
if buf[cursor] != ',' {
return 0, errExpected("semicolon after object value", cursor)
return 0, errExpected("comma after object value", cursor)
}
}
return cursor, nil