From c20ff8029816eb71956ba95e0009ce3e4c98c3df Mon Sep 17 00:00:00 2001 From: Xie Yanbo Date: Tue, 28 May 2024 13:32:16 +0800 Subject: [PATCH] Fix typos in comments --- Tools/clinic/libclinic/dsl_parser.py | 2 +- Tools/peg_generator/pegen/parser_generator.py | 2 +- Tools/wasm/wasi-env | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Tools/clinic/libclinic/dsl_parser.py b/Tools/clinic/libclinic/dsl_parser.py index cb18374cf07e3c9..ab9b586693d01c2 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 ad28f6c27dcb37d..3f386b61be5898b 100644 --- a/Tools/peg_generator/pegen/parser_generator.py +++ b/Tools/peg_generator/pegen/parser_generator.py @@ -41,7 +41,7 @@ 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 e6c6fb2d8e47e75..95eda863cb62c6c 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. "$@"