encoding/json: adjust comment to keep the same style as comment above

This commit is contained in:
Jes Cok 2023-08-02 20:23:25 +08:00
parent fb6f38dda1
commit 98c671c00c
1 changed files with 1 additions and 1 deletions

View File

@ -844,7 +844,7 @@ var numberType = reflect.TypeFor[Number]()
func (d *decodeState) literalStore(item []byte, v reflect.Value, fromQuoted bool) error {
// Check for unmarshaler.
if len(item) == 0 {
//Empty string given
// Empty string given.
d.saveError(fmt.Errorf("json: invalid use of ,string struct tag, trying to unmarshal %q into %v", item, v.Type()))
return nil
}