Fix typos in comments (#119645)

This commit is contained in:
Xie Yanbo 2024-05-28 15:53:32 +08:00 committed by GitHub
parent a9a74da4a0
commit bf08f0a5fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -119,7 +119,7 @@ class ParamState(enum.IntEnum):
# Legal transitions: to LEFT_SQUARE_BEFORE or REQUIRED # Legal transitions: to LEFT_SQUARE_BEFORE or REQUIRED
START = 0 START = 0
# Left square backets before required params. # Left square brackets before required params.
LEFT_SQUARE_BEFORE = 1 LEFT_SQUARE_BEFORE = 1
# In a group, before required params. # In a group, before required params.

View File

@ -41,7 +41,7 @@ from pegen.grammar import (
class RuleCollectorVisitor(GrammarVisitor): class RuleCollectorVisitor(GrammarVisitor):
"""Visitor that invokes a provieded callmaker visitor with just the NamedItem nodes""" """Visitor that invokes a provided callmaker visitor with just the NamedItem nodes"""
def __init__(self, rules: Dict[str, Rule], callmakervisitor: GrammarVisitor) -> None: def __init__(self, rules: Dict[str, Rule], callmakervisitor: GrammarVisitor) -> None:
self.rulses = rules self.rulses = rules

View File

@ -71,5 +71,5 @@ export CFLAGS LDFLAGS
export PKG_CONFIG_PATH PKG_CONFIG_LIBDIR PKG_CONFIG_SYSROOT_DIR export PKG_CONFIG_PATH PKG_CONFIG_LIBDIR PKG_CONFIG_SYSROOT_DIR
export PATH export PATH
# no exec, it makes arvg[0] path absolute. # no exec, it makes argv[0] path absolute.
"$@" "$@"