File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -237,13 +237,13 @@ func (t *Tokenizer) pop(expect scope) error {
237237// on.
238238func (t * Tokenizer ) Kind () Kind { return t .flags .kind () }
239239
240- // String returns a byte slice containing the value of the json string that the
240+ // Bool returns a bool containing the value of the json boolean that the
241241// tokenizer is currently pointing at.
242242//
243243// This method must only be called after checking the kind of the token via a
244244// call to Kind.
245245//
246- // If the tokenizer is not positioned on a string , the behavior is undefined.
246+ // If the tokenizer is not positioned on a boolean , the behavior is undefined.
247247func (t * Tokenizer ) Bool () bool { return t .flags .kind () == True }
248248
249249// Int returns a byte slice containing the value of the json number that the
You can’t perform that action at this time.
0 commit comments