Skip to content

Commit 1821cb3

Browse files
authored
[NFC] Fix an incorrect comment about operator precedence. (#105784)
The comment talks about left-associative operators twice, when the latter mention is actually describing right-associative operators.
1 parent df97673 commit 1821cb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Parse/ParseExpr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ Parser::ParseRHSOfBinaryExpression(ExprResult LHS, prec::Level MinPrec) {
607607
RHS = ExprError();
608608
}
609609
// If this is left-associative, only parse things on the RHS that bind
610-
// more tightly than the current operator. If it is left-associative, it
610+
// more tightly than the current operator. If it is right-associative, it
611611
// is okay, to bind exactly as tightly. For example, compile A=B=C=D as
612612
// A=(B=(C=D)), where each paren is a level of recursion here.
613613
// The function takes ownership of the RHS.

0 commit comments

Comments
 (0)