Skip to content

Commit d11ac57

Browse files
committed
---
yaml --- r: 13756 b: refs/heads/try c: 2d84b48 h: refs/heads/master v: v3
1 parent d23a45a commit d11ac57

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 4c4a5f734d300a8e2dffe43c0c391e7317c47bc6
5+
refs/heads/try: 2d84b481de8eb5b75774fbaf78f893e35dcca4eb
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/doc/rust.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1679,13 +1679,13 @@ x.y <- c;
16791679
A _swap expression_ consists of an *lval* followed by a bi-directional arrow
16801680
(`<->`) and another *lval* expression.
16811681

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
16831683
left-hand-side and right-hand-side *lvals* to be exchanged indivisibly.
16841684

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
16891689
expression. No allocation or destruction is entailed.
16901690

16911691
An example of three different swap expressions:

0 commit comments

Comments
 (0)