summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authoryutotnh <57719497+yutotnh@users.noreply.github.com>2022-06-28 14:28:21 (GMT)
committerGitHub <noreply@github.com>2022-06-28 14:28:21 (GMT)
commit56310136170ef6653cb050f58dd2d32538997f59 (patch)
tree3e4932f2cc29dcf95add3f31c03b247068c33412 /Tools
parentc485ec014ce174bb3f5ae948151dc40e0f6d5f7f (diff)
downloadcpython-56310136170ef6653cb050f58dd2d32538997f59.zip
cpython-56310136170ef6653cb050f58dd2d32538997f59.tar.gz
cpython-56310136170ef6653cb050f58dd2d32538997f59.tar.bz2
Fix typos in comments (#94305)
Diffstat (limited to 'Tools')
-rw-r--r--Tools/c-analyzer/c_parser/parser/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/c-analyzer/c_parser/parser/__init__.py b/Tools/c-analyzer/c_parser/parser/__init__.py
index b5eae2e..0343c2d 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