diff options
author | Ikko Ashimine <eltociear@gmail.com> | 2021-03-10 10:39:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-10 10:39:51 (GMT) |
commit | 57827f87542726fe359991185db63b59ae08a69b (patch) | |
tree | c23e78685ebbb5191dbacc8a98efd539e6637fbc | |
parent | 307745aa42196ad3fd97fee4a1ae6496bb895596 (diff) | |
download | cpython-57827f87542726fe359991185db63b59ae08a69b.zip cpython-57827f87542726fe359991185db63b59ae08a69b.tar.gz cpython-57827f87542726fe359991185db63b59ae08a69b.tar.bz2 |
Fix typo in compile.c (GH-24812)
guranteed -> guaranteed
-rw-r--r-- | Python/compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c index b0d3127..a841288 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -5754,7 +5754,7 @@ compiler_pattern_mapping(struct compiler *c, expr_ty p, pattern_context *pc) asdl_expr_seq *keys = p->v.Dict.keys; asdl_expr_seq *values = p->v.Dict.values; Py_ssize_t size = asdl_seq_LEN(values); - // A starred pattern will be a keyless value. It is guranteed to be last: + // A starred pattern will be a keyless value. It is guaranteed to be last: int star = size ? !asdl_seq_GET(keys, size - 1) : 0; ADDOP(c, MATCH_MAPPING); ADDOP_JUMP(c, POP_JUMP_IF_FALSE, fail_pop_1); |