summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorxatier <xatierlike@gmail.com>2020-03-09 02:58:24 (GMT)
committerGitHub <noreply@github.com>2020-03-09 02:58:24 (GMT)
commitd7a04a842599c4838a5fdf839842d414a302d7e2 (patch)
tree7c7d5b51a21c2d4445cad29c57cb1ee33a1a7987 /Parser
parent0911ea5c172264eaefa3efe4a1788159c160920d (diff)
downloadcpython-d7a04a842599c4838a5fdf839842d414a302d7e2.zip
cpython-d7a04a842599c4838a5fdf839842d414a302d7e2.tar.gz
cpython-d7a04a842599c4838a5fdf839842d414a302d7e2.tar.bz2
Fix typo in the parser generator (GH-18603)
Diffstat (limited to 'Parser')
-rw-r--r--Parser/pgen/automata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/pgen/automata.py b/Parser/pgen/automata.py
index d04ca7c..f2ed221 100644
--- a/Parser/pgen/automata.py
+++ b/Parser/pgen/automata.py
@@ -236,7 +236,7 @@ class DFA:
if nfa_arc.label is None:
add_closure(nfa_arc.target, base_nfa_set)
- # Calculte the epsilon-closure of the starting state
+ # Calculate the epsilon-closure of the starting state
base_nfa_set = set()
add_closure(nfa.start, base_nfa_set)