Skip to content

Commit 4b97003

Browse files
committed
Use token_type_string over token_type_to_string
1 parent 2ad882e commit 4b97003

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/token.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const char* token_type_string(int type) {
6262
}
6363

6464
char* token_to_string(token_T* token) {
65-
const char* type_string = token_type_to_string(token->type);
65+
const char* type_string = token_type_string(token->type);
6666
const char* template = "#<Token type=%s value='%s' range=[%d, %d] start=%d:%d end=%d:%d>";
6767

6868
char* string = calloc(strlen(type_string) + strlen(template) + 8, sizeof(char));

0 commit comments

Comments
 (0)