mirror of https://github.com/python/cpython
Fix typos in comments (#94305)
This commit is contained in:
parent
c485ec014c
commit
5631013617
|
@ -203,7 +203,7 @@ def internalTk():
|
||||||
|
|
||||||
# Do we use 8.6.8 when building our own copy
|
# Do we use 8.6.8 when building our own copy
|
||||||
# of Tcl/Tk or a modern version.
|
# 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.
|
# old versions of macOS due to build issues.
|
||||||
def useOldTk():
|
def useOldTk():
|
||||||
return getBuildTuple() < (10, 15)
|
return getBuildTuple() < (10, 15)
|
||||||
|
|
|
@ -42,7 +42,7 @@ separators:
|
||||||
+ (stmt) case: between expression and stmt
|
+ (stmt) case: between expression and stmt
|
||||||
+ (stmt) default: between "default" 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"
|
+ (decl) enumerator: between identifier and "initializer"
|
||||||
+ (expr) assignment: between "var" and expr
|
+ (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 "inline" type decls in function return types
|
||||||
* no superfluous parentheses in declarators
|
* no superfluous parentheses in declarators
|
||||||
* var decls in for loops are always "simple" (e.g. no inline types)
|
* 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
|
* no function pointers in function pointer parameters
|
||||||
* for loop "headers" do not have curly braces (e.g. compound init)
|
* for loop "headers" do not have curly braces (e.g. compound init)
|
||||||
* syntactically, variable decls do not overlap with stmts/exprs, except
|
* syntactically, variable decls do not overlap with stmts/exprs, except
|
||||||
|
|
Loading…
Reference in New Issue