forked from mirror/go-json
Fix typo
This commit is contained in:
parent
03b55c1425
commit
bbc1c41481
|
@ -99,7 +99,7 @@ func (d *mapDecoder) decodeStream(s *stream, p uintptr) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
if s.char() != ',' {
|
if s.char() != ',' {
|
||||||
return errExpected("semicolon after object value", s.totalOffset())
|
return errExpected("comma after object value", s.totalOffset())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
@ -168,7 +168,7 @@ func (d *mapDecoder) decode(buf []byte, cursor int64, p uintptr) (int64, error)
|
||||||
return cursor, nil
|
return cursor, nil
|
||||||
}
|
}
|
||||||
if buf[cursor] != ',' {
|
if buf[cursor] != ',' {
|
||||||
return 0, errExpected("semicolon after object value", cursor)
|
return 0, errExpected("comma after object value", cursor)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return cursor, nil
|
return cursor, nil
|
||||||
|
|
Loading…
Reference in New Issue