Skip to content

Commit

Permalink
Fix trivial typo in the PEG string parser (pythonGH-21508)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvsmith authored and shihai1991 committed Aug 4, 2020
1 parent f2197cb commit e57f75d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Parser/string_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ fstring_compile_expr(Parser *p, const char *expr_start, const char *expr_end,
return NULL;
}

// The parentheses are needed in order to allow for leading whitespace withing
// The parentheses are needed in order to allow for leading whitespace within
// the f-string expression. This consequently gets parsed as a group (see the
// group rule in python.gram).
str[0] = '(';
Expand Down

0 comments on commit e57f75d

Please sign in to comment.