fn is_misspelled_kind(kind: TokenKind, token_str: &str) -> bool {
        let tokenkind_str = kind.to_string().as_bytes();
        let token_str = token_str.as_bytes();
        if tokenkind_str.len() <= 1 {
            false
        } else {
            Self::one_character_different(tokenkind_str, token_str)
        }
    }
// Compare the text of the token we have in hand to the text of the
// anticipated kind. Note: this automatically returns false for any
// TokenKinds of length 1.
Compare the text of the token we have in hand to the text of the
anticipated kind. Note: this automatically returns false for any
TokenKinds of length 1.
Compare the text of the token we have in hand to the text of the anticipated kind . Note : this automatically returns false for any TokenKinds of length 1 .
fn is_misspelled_kind(kind: TokenKind, token_str: &str) -> bool {
        let tokenkind_str = kind.to_string().as_bytes();
        let token_str = token_str.as_bytes();
        if tokenkind_str.len() <= 1 {
            false
        } else {
            Self::one_character_different(tokenkind_str, token_str)
        }
    }
fn is_misspelled_kind ( kind : TokenKind , token_str : & str ) -> bool { let tokenkind_str = kind . to_string ( ) . as_bytes ( ) ; let token_str = token_str . as_bytes ( ) ; if tokenkind_str . len ( ) <= 1 { false } else { Self :: one_character_different ( tokenkind_str , token_str ) } }
Compare the text of the token we have in hand to the text of the
anticipated kind.
Compare the text of the token we have in hand to the text of the anticipated kind .
kind
TokenKind
token_str
&str
kind
TokenKind
token_str
&str