Skip to content

Commit 6a17a57

Browse files
Havvyjoshtriplett
andcommitted
Execution order: Spell out uninitialized explicitly on field as well
It could have been read that it was any field, not just uninitialized fields. Co-authored-by: Josh Triplett <josh@joshtriplett.org>
1 parent 301182e commit 6a17a57

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/expressions/operator-expr.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -427,9 +427,9 @@ operand.
427427
> is evaluated before the left one.
428428
429429
It then has the effect of first [dropping] the value at the assigned place,
430-
unless the place is an uninitialized local variable or field of a local
431-
variable. Next it either [copies or moves] the assigned value to the assigned
432-
place.
430+
unless the place is an uninitialized local variable or an uninitialized field of
431+
a local variable. Next it either [copies or moves] the assigned value to the
432+
assigned place.
433433

434434
An assignment expression always produces [the unit value][unit].
435435

0 commit comments

Comments
 (0)