mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
encoding/json: adjust comment to keep the same style as comment above
Change-Id: Id47d32d18031883b874bba4cf8541f75c5d7f9db
GitHub-Last-Rev: 98c671c00c
GitHub-Pull-Request: golang/go#61711
Reviewed-on: https://go-review.googlesource.com/c/go/+/515215
Reviewed-by: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Auto-Submit: Russ Cox <rsc@golang.org>
Reviewed-by: David Chase <drchase@google.com>
This commit is contained in:
parent
76b8e80fab
commit
0f1491ded5
1 changed files with 1 additions and 1 deletions
|
|
@ -844,7 +844,7 @@ var numberType = reflect.TypeFor[Number]()
|
||||||
func (d *decodeState) literalStore(item []byte, v reflect.Value, fromQuoted bool) error {
|
func (d *decodeState) literalStore(item []byte, v reflect.Value, fromQuoted bool) error {
|
||||||
// Check for unmarshaler.
|
// Check for unmarshaler.
|
||||||
if len(item) == 0 {
|
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()))
|
d.saveError(fmt.Errorf("json: invalid use of ,string struct tag, trying to unmarshal %q into %v", item, v.Type()))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue