summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-07-16 16:30:19 (GMT)
committerGitHub <noreply@github.com>2020-07-16 16:30:19 (GMT)
commit9d8b8c3ed2c672e0f0d5248a86972c6788f0701d (patch)
tree2a2aca8bc2dca7ceeb28da82db7dd7d226309ccc /Parser
parent961703cdc82536b6ff897ad7d4b3bbf22718d1b5 (diff)
downloadcpython-9d8b8c3ed2c672e0f0d5248a86972c6788f0701d.zip
cpython-9d8b8c3ed2c672e0f0d5248a86972c6788f0701d.tar.gz
cpython-9d8b8c3ed2c672e0f0d5248a86972c6788f0701d.tar.bz2
Fix trivial typo in the PEG string parser (GH-21508)
(cherry picked from commit 0275e0452a773976827c2b9bd1e598ee08e2d7f5) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
Diffstat (limited to 'Parser')
-rw-r--r--Parser/pegen/parse_string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/pegen/parse_string.c b/Parser/pegen/parse_string.c
index d762e65..7b02bdd 100644
--- a/Parser/pegen/parse_string.c
+++ b/Parser/pegen/parse_string.c
@@ -390,7 +390,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] = '(';