From bbc1c414814ff3e08e336ffa3b1a36fb29bc1400 Mon Sep 17 00:00:00 2001 From: Masaaki Goshima Date: Fri, 14 Aug 2020 16:00:29 +0900 Subject: [PATCH] Fix typo --- decode_map.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/decode_map.go b/decode_map.go index 84f55b7..4e32ec8 100644 --- a/decode_map.go +++ b/decode_map.go @@ -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