Skip to content

Commit 4e2cc2a

Browse files
Fixes Bool method comment (#115)
* Fixes Bool method comment * Update json/token.go Co-authored-by: Achille <[email protected]>
1 parent 3147938 commit 4e2cc2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

json/token.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -237,13 +237,13 @@ func (t *Tokenizer) pop(expect scope) error {
237237
// on.
238238
func (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.
247247
func (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

0 commit comments

Comments
 (0)