bpo-46272: Fix two heading comments in python.gram (GH-30499)

One typo fix and one heading change, both in comments. No functional changes.
This commit is contained in:
Mark Dickinson 2022-01-09 16:22:54 +00:00 committed by GitHub
parent 2d787971c6
commit 1bee9a4625
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View 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]: