Skip to content

Commit a1e051a

Browse files
authored
gh-100940: Change "char *str" to "const char *str" in KeywordToken: It is an immutable string. (#100936)
1 parent 75c8133 commit a1e051a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Parser/pegen.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ typedef struct {
4242
} Token;
4343

4444
typedef struct {
45-
char *str;
45+
const char *str;
4646
int type;
4747
} KeywordToken;
4848

0 commit comments

Comments
 (0)