]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-46272: Fix two heading comments in python.gram (GH-30499)
authorMark Dickinson <mdickinson@enthought.com>
Sun, 9 Jan 2022 16:22:54 +0000 (16:22 +0000)
committerGitHub <noreply@github.com>
Sun, 9 Jan 2022 16:22:54 +0000 (08:22 -0800)
One typo fix and one heading change, both in comments. No functional changes.

Grammar/python.gram

index c989823e3091c91701dc62bb7677925edb6400cc..c5a5f1b7fe20eae88125df7b33423db09f8d75f3 100644 (file)
@@ -676,8 +676,8 @@ inversion[expr_ty] (memo):
     | 'not' a=inversion { _PyAST_UnaryOp(Not, a, EXTRA) }
     | comparison
 
-# Comparisons operators
-# ---------------------
+# Comparison operators
+# --------------------
 
 comparison[expr_ty]:
     | a=bitwise_or b=compare_op_bitwise_or_pair+ {
@@ -712,7 +712,7 @@ in_bitwise_or[CmpopExprPair*]: 'in' a=bitwise_or { _PyPegen_cmpop_expr_pair(p, I
 isnot_bitwise_or[CmpopExprPair*]: 'is' 'not' a=bitwise_or { _PyPegen_cmpop_expr_pair(p, IsNot, a) }
 is_bitwise_or[CmpopExprPair*]: 'is' a=bitwise_or { _PyPegen_cmpop_expr_pair(p, Is, a) }
 
-# Logical operators
+# Bitwise operators
 # -----------------
 
 bitwise_or[expr_ty]: