Skip to content

Commit

Permalink
pythongh-100940: Change "char *str" to "const char *str" in KeywordTo…
Browse files Browse the repository at this point in the history
…ken: It is an immutable string. (python#100936)
  • Loading branch information
StepfenShawn committed Jan 18, 2023
1 parent 75c8133 commit a1e051a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Parser/pegen.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ typedef struct {
} Token;

typedef struct {
char *str;
const char *str;
int type;
} KeywordToken;

Expand Down

0 comments on commit a1e051a

Please sign in to comment.