diff options
Diffstat (limited to 'src/encoding/json/jsontext/value.go')
| -rw-r--r-- | src/encoding/json/jsontext/value.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encoding/json/jsontext/value.go b/src/encoding/json/jsontext/value.go index a4b06b2a94..84c919b9dc 100644 --- a/src/encoding/json/jsontext/value.go +++ b/src/encoding/json/jsontext/value.go @@ -236,7 +236,7 @@ func (v *Value) UnmarshalJSON(b []byte) error { } // Kind returns the starting token kind. -// For a valid value, this will never include '}' or ']'. +// For a valid value, this will never include [KindEndObject] or [KindEndArray]. func (v Value) Kind() Kind { if v := v[jsonwire.ConsumeWhitespace(v):]; len(v) > 0 { return Kind(v[0]).normalize() |
