summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXie Yanbo <xieyanbo@gmail.com>2024-05-28 07:53:32 (GMT)
committerGitHub <noreply@github.com>2024-05-28 07:53:32 (GMT)
commitbf08f0a5fe5750904aa4a239945db16d2c43f6e7 (patch)
treecd5c8dcd73c7eef723698c123d0756b83c851bc1
parenta9a74da4a0ca0645f049e67b6434a95e30592c32 (diff)
downloadcpython-bf08f0a5fe5750904aa4a239945db16d2c43f6e7.zip
cpython-bf08f0a5fe5750904aa4a239945db16d2c43f6e7.tar.gz
cpython-bf08f0a5fe5750904aa4a239945db16d2c43f6e7.tar.bz2
Fix typos in comments (#119645)
-rw-r--r--Tools/clinic/libclinic/dsl_parser.py2
-rw-r--r--Tools/peg_generator/pegen/parser_generator.py2
-rwxr-xr-xTools/wasm/wasi-env2
3 files changed, 3 insertions, 3 deletions
diff --git a/Tools/clinic/libclinic/dsl_parser.py b/Tools/clinic/libclinic/dsl_parser.py
index cb18374..ab9b586 100644
--- a/Tools/clinic/libclinic/dsl_parser.py
+++ b/Tools/clinic/libclinic/dsl_parser.py
@@ -119,7 +119,7 @@ class ParamState(enum.IntEnum):
# Legal transitions: to LEFT_SQUARE_BEFORE or REQUIRED
START = 0
- # Left square backets before required params.
+ # Left square brackets before required params.
LEFT_SQUARE_BEFORE = 1
# In a group, before required params.
diff --git a/Tools/peg_generator/pegen/parser_generator.py b/Tools/peg_generator/pegen/parser_generator.py
index ad28f6c..3f386b6 100644
--- a/Tools/peg_generator/pegen/parser_generator.py
+++ b/Tools/peg_generator/pegen/parser_generator.py
@@ -41,7 +41,7 @@ from pegen.grammar import (
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:
self.rulses = rules
diff --git a/Tools/wasm/wasi-env b/Tools/wasm/wasi-env
index e6c6fb2..95eda86 100755
--- a/Tools/wasm/wasi-env
+++ b/Tools/wasm/wasi-env
@@ -71,5 +71,5 @@ export CFLAGS LDFLAGS
export PKG_CONFIG_PATH PKG_CONFIG_LIBDIR PKG_CONFIG_SYSROOT_DIR
export PATH
-# no exec, it makes arvg[0] path absolute.
+# no exec, it makes argv[0] path absolute.
"$@"