Skip to content

Commit

Permalink
- fix message
Browse files Browse the repository at this point in the history
  • Loading branch information
mbs-octoml committed May 5, 2022
1 parent 30e6f24 commit d58d5f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/tokenizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ struct Tokenizer {
}

Token ParseNumber(bool is_pos, bool is_float, std::string number) {
ICHECK(number.size() > 0) << "an empty string is an invalid float";
ICHECK(number.size() > 0) << "an empty string is an invalid number";

Token token = NewToken(is_float ? TokenType::kFloat : TokenType::kInteger);
size_t suffix_pos = number.rfind(is_float ? 'f' : 'i');
Expand Down

0 comments on commit d58d5f1

Please sign in to comment.