Skip to content

Commit

Permalink
Execution order: Spell out uninitialized explicitly on field as well
Browse files Browse the repository at this point in the history
It could have been read that it was any field, not just uninitialized fields.

Co-authored-by: Josh Triplett <josh@joshtriplett.org>
  • Loading branch information
Havvy and joshtriplett committed Jan 14, 2021
1 parent a0f4b69 commit 5b3b632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/expressions/operator-expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ operand.
> is evaluated before the left one.
It then has the effect of first [dropping] the value at the assigned place,
unless the place is an uninitialized local variable or field of a local
unless the place is an uninitialized local variable or an uninitialized field of a local
variable. Next it either [copies or moves] the assigned value to the assigned
place.

Expand Down

0 comments on commit 5b3b632

Please sign in to comment.