Skip to content

Commit 1353192

Browse files
committed
Fix "operands" wording w.r.t. compound assignment
The things on each side of a `+=` are its operands, and this is what we're referring to here.
1 parent 9687a3f commit 1353192

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expressions/operator-expr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ r[expr.compound-assign.no-value]
900900
Attempting to use a value expression is a compiler error rather than promoting it to a temporary.
901901

902902
r[expr.compound-assign.operand-order]
903-
Evaluation of compound assignment expressions depends on the types of the operators.
903+
Evaluation of compound assignment expressions depends on the types of the operands.
904904

905905
r[expr.compound-assign.primitive-order]
906906
If both types are primitives and the expression is non-generic (i.e., directly uses concrete types), then the modifying operand will be evaluated first followed by the assigned operand.

0 commit comments

Comments
 (0)