File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1679,13 +1679,13 @@ x.y <- c;
1679
1679
A _ swap expression_ consists of an * lval* followed by a bi-directional arrow
1680
1680
(` <-> ` ) and another * lval* expression.
1681
1681
1682
- Evaluating a swap expression causes, as a side effect, the vales held in the
1682
+ Evaluating a swap expression causes, as a side effect, the values held in the
1683
1683
left-hand-side and right-hand-side * lvals* to be exchanged indivisibly.
1684
1684
1685
- Evaluating a move expression does not change reference counts, nor does it
1686
- cause a deep copy of any unique structure pointed to by the moved
1687
- * rval* . Instead, the move expression represents an indivisible * exchange of
1688
- ownership* between the right-hand-side to the left-hand-side of the
1685
+ Evaluating a swap expression neither changes reference counts nor deeply
1686
+ copies any unique structure pointed to by the moved
1687
+ * rval* . Instead, the swap expression represents an indivisible * exchange of
1688
+ ownership* between the right-hand-side and the left-hand-side of the
1689
1689
expression. No allocation or destruction is entailed.
1690
1690
1691
1691
An example of three different swap expressions:
You can’t perform that action at this time.
0 commit comments