From 0f1491ded51769588b9306b9d789498dc75b5caa Mon Sep 17 00:00:00 2001 From: Jes Cok Date: Wed, 2 Aug 2023 12:30:56 +0000 Subject: [PATCH] encoding/json: adjust comment to keep the same style as comment above Change-Id: Id47d32d18031883b874bba4cf8541f75c5d7f9db GitHub-Last-Rev: 98c671c00c112e7bdf70b2f901a4f7682f922725 GitHub-Pull-Request: golang/go#61711 Reviewed-on: https://go-review.googlesource.com/c/go/+/515215 Reviewed-by: Russ Cox TryBot-Result: Gopher Robot Run-TryBot: Russ Cox Auto-Submit: Russ Cox Reviewed-by: David Chase --- src/encoding/json/decode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/encoding/json/decode.go b/src/encoding/json/decode.go index 1119275f513..36e1fe31003 100644 --- a/src/encoding/json/decode.go +++ b/src/encoding/json/decode.go @@ -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 }