]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typos in comments (#119645)
authorXie Yanbo <xieyanbo@gmail.com>
Tue, 28 May 2024 07:53:32 +0000 (15:53 +0800)
committerGitHub <noreply@github.com>
Tue, 28 May 2024 07:53:32 +0000 (09:53 +0200)
Tools/clinic/libclinic/dsl_parser.py
Tools/peg_generator/pegen/parser_generator.py
Tools/wasm/wasi-env

index cb18374cf07e3c91819357e31ae52a7fa6c8d4c3..ab9b586693d01c2b0ccb6a491d98f41f54b0d80f 100644 (file)
@@ -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.
index ad28f6c27dcb37dfdf782a9bdfd0dd8a378c224a..3f386b61be5898b12a5efca3a940f6d62b2628a1 100644 (file)
@@ -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
index e6c6fb2d8e47e75e188fee4cffc811beb618fe1c..95eda863cb62c6c04d993050181386889230d6f1 100755 (executable)
@@ -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.
 "$@"