summaryrefslogtreecommitdiffstats
path: root/Grammar
diff options
context:
space:
mode:
authorMark Dickinson <mdickinson@enthought.com>2022-01-09 16:22:54 (GMT)
committerGitHub <noreply@github.com>2022-01-09 16:22:54 (GMT)
commit1bee9a4625e101d3308831de37590f4e2f57c71c (patch)
tree013e0eb0001989f08c1303f77c70edefd7def213 /Grammar
parent2d787971c65b005d0cce219399b9a8e2b70d4ef4 (diff)
downloadcpython-1bee9a4625e101d3308831de37590f4e2f57c71c.zip
cpython-1bee9a4625e101d3308831de37590f4e2f57c71c.tar.gz
cpython-1bee9a4625e101d3308831de37590f4e2f57c71c.tar.bz2
bpo-46272: Fix two heading comments in python.gram (GH-30499)
One typo fix and one heading change, both in comments. No functional changes.
Diffstat (limited to 'Grammar')
-rw-r--r--Grammar/python.gram6
1 files changed, 3 insertions, 3 deletions
diff --git a/Grammar/python.gram b/Grammar/python.gram
index c989823..c5a5f1b 100644
--- a/Grammar/python.gram
+++ b/Grammar/python.gram
@@ -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]: