File tree 1 file changed +2
-2
lines changed
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 {
237
237
// on.
238
238
func (t * Tokenizer ) Kind () Kind { return t .flags .kind () }
239
239
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
241
241
// tokenizer is currently pointing at.
242
242
//
243
243
// This method must only be called after checking the kind of the token via a
244
244
// call to Kind.
245
245
//
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.
247
247
func (t * Tokenizer ) Bool () bool { return t .flags .kind () == True }
248
248
249
249
// 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