From 4e2cc2a059d8b085959eabf995c4d43d56566e5a Mon Sep 17 00:00:00 2001 From: Fabrice Vaillant Date: Sat, 11 Dec 2021 22:52:32 +0100 Subject: [PATCH] Fixes Bool method comment (#115) * Fixes Bool method comment * Update json/token.go Co-authored-by: Achille --- json/token.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/json/token.go b/json/token.go index 93714fc..652e36d 100644 --- a/json/token.go +++ b/json/token.go @@ -237,13 +237,13 @@ func (t *Tokenizer) pop(expect scope) error { // on. func (t *Tokenizer) Kind() Kind { return t.flags.kind() } -// String returns a byte slice containing the value of the json string that the +// Bool returns a bool containing the value of the json boolean that the // tokenizer is currently pointing at. // // This method must only be called after checking the kind of the token via a // call to Kind. // -// If the tokenizer is not positioned on a string, the behavior is undefined. +// If the tokenizer is not positioned on a boolean, the behavior is undefined. func (t *Tokenizer) Bool() bool { return t.flags.kind() == True } // Int returns a byte slice containing the value of the json number that the