Skip to content

Commit

Permalink
add validstring for perftest
Browse files Browse the repository at this point in the history
  • Loading branch information
liuq19 committed Aug 10, 2022
1 parent b715cf7 commit b8eaba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sonic.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (cfg *frozenConfig) MarshalIndent(val interface{}, prefix, indent string) (
func (cfg *frozenConfig) UnmarshalFromString(buf string, val interface{}) error {
dec := decoder.NewDecoder(buf)
dec.SetOptions(cfg.decoderOpts)

dec.ValidString()
err := dec.Decode(val)
pos := dec.Pos()

Expand Down

0 comments on commit b8eaba9

Please sign in to comment.