You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Evaluating a swap expression causes, as a side effect, the vales held in the left-hand-side and right-hand-side lvals to be exchanged indivisibly.
Evaluating a move expression does not change reference counts, nor does it cause a deep copy of any unique structure pointed to by the moved rval. Instead, the move expression represents an indivisible exchange of ownership between the right-hand-side to the left-hand-side of the expression. No allocation or destruction is entailed.
The second paragraph was copied verbatim from the previous section and should probably be updated to refer to swap expressions.
In the first paragraph "vales" should be "values".
The text was updated successfully, but these errors were encountered:
http://doc.rust-lang.org/doc/rust.html#swap-expressions says:
The second paragraph was copied verbatim from the previous section and should probably be updated to refer to swap expressions.
In the first paragraph "vales" should be "values".
The text was updated successfully, but these errors were encountered: