diff options
author | 2022-06-28 23:28:21 +0900 | |
---|---|---|
committer | 2022-06-28 16:28:21 +0200 | |
commit | 56310136170ef6653cb050f58dd2d32538997f59 (patch) | |
tree | 3e4932f2cc29dcf95add3f31c03b247068c33412 | |
parent | gh-88116: Avoid undefined behavior when decoding varints in code objects (#94... (diff) | |
download | cpython-56310136170ef6653cb050f58dd2d32538997f59.tar.gz cpython-56310136170ef6653cb050f58dd2d32538997f59.tar.bz2 cpython-56310136170ef6653cb050f58dd2d32538997f59.zip |
Fix typos in comments (#94305)
-rwxr-xr-x | Mac/BuildScript/build-installer.py | 2 | ||||
-rw-r--r-- | Tools/c-analyzer/c_parser/parser/__init__.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Mac/BuildScript/build-installer.py b/Mac/BuildScript/build-installer.py index 50b55f9cd1d..a1d31c42381 100755 --- a/Mac/BuildScript/build-installer.py +++ b/Mac/BuildScript/build-installer.py @@ -203,7 +203,7 @@ def internalTk(): # Do we use 8.6.8 when building our own copy # of Tcl/Tk or a modern version. -# We use the old version when buildin on +# We use the old version when building on # old versions of macOS due to build issues. def useOldTk(): return getBuildTuple() < (10, 15) diff --git a/Tools/c-analyzer/c_parser/parser/__init__.py b/Tools/c-analyzer/c_parser/parser/__init__.py index b5eae2ed92d..0343c2d68aa 100644 --- a/Tools/c-analyzer/c_parser/parser/__init__.py +++ b/Tools/c-analyzer/c_parser/parser/__init__.py @@ -42,7 +42,7 @@ separators: + (stmt) case: between expression and stmt + (stmt) default: between "default" and stmt * "=" - + (decl) delaration: between decl and initializer + + (decl) declaration: between decl and initializer + (decl) enumerator: between identifier and "initializer" + (expr) assignment: between "var" and expr @@ -92,7 +92,7 @@ Here are the cases where we've taken shortcuts or made assumptions: * no "inline" type decls in function return types * no superfluous parentheses in declarators * var decls in for loops are always "simple" (e.g. no inline types) -* only inline struct/union/enum decls may be anonymouns (without a name) +* only inline struct/union/enum decls may be anonymous (without a name) * no function pointers in function pointer parameters * for loop "headers" do not have curly braces (e.g. compound init) * syntactically, variable decls do not overlap with stmts/exprs, except |