diff options
Diffstat (limited to 'src/encoding/json/jsontext/encode.go')
| -rw-r--r-- | src/encoding/json/jsontext/encode.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/encoding/json/jsontext/encode.go b/src/encoding/json/jsontext/encode.go index e3b9c04ca6..20f020700b 100644 --- a/src/encoding/json/jsontext/encode.go +++ b/src/encoding/json/jsontext/encode.go @@ -946,9 +946,9 @@ func (e *Encoder) StackDepth() int { // It must be a number between 0 and [Encoder.StackDepth], inclusive. // For each level, it reports the kind: // -// - 0 for a level of zero, -// - '{' for a level representing a JSON object, and -// - '[' for a level representing a JSON array. +// - [KindInvalid] for a level of zero, +// - [KindBeginObject] for a level representing a JSON object, and +// - [KindBeginArray] for a level representing a JSON array. // // It also reports the length of that JSON object or array. // Each name and value in a JSON object is counted separately, |
