]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix trivial typo in the PEG string parser (GH-21508)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 16 Jul 2020 16:30:19 +0000 (09:30 -0700)
committerGitHub <noreply@github.com>
Thu, 16 Jul 2020 16:30:19 +0000 (09:30 -0700)
(cherry picked from commit 0275e0452a773976827c2b9bd1e598ee08e2d7f5)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
Parser/pegen/parse_string.c

index d762e653f9531780e8c0b91945e8964c6c88eda3..7b02bdde645e80f66fe562520854b16d422f554f 100644 (file)
@@ -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] = '(';