Skip to content

Commit 9f7b296

Browse files
committed
---
yaml --- r: 35846 b: refs/heads/try2 c: c46706f h: refs/heads/master v: v3
1 parent 20ca8c7 commit 9f7b296

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: e257f390e12f3eb414152a474259ccd8641627aa
8+
refs/heads/try2: c46706fffdfc54fcb19fee543e6ad8a4c4b79ca4
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
1010
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try2/doc/rust.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1636,8 +1636,9 @@ task in a _failing state_.
16361636

16371637
### Unary operator expressions
16381638

1639-
Rust defines five unary operators. They are all written as prefix
1640-
operators, before the expression they apply to.
1639+
Rust defines six symbolic unary operators,
1640+
in addition to the unary [copy](#unary-copy-expressions) and [move](#unary-move-expressions) operators.
1641+
They are all written as prefix operators, before the expression they apply to.
16411642

16421643
`-`
16431644
: Negation. May only be applied to numeric types.
@@ -1652,9 +1653,12 @@ operators, before the expression they apply to.
16521653
`false`. On integer types, this inverts the individual bits in the
16531654
two's complement representation of the value.
16541655
`@` and `~`
1655-
: [Boxing](#box-types) operators. Allocate a box to hold the value
1656-
they are applied to, and store the value in it. `@` creates a
1657-
shared, reference-counted box, whereas `~` creates a unique box.
1656+
: [Boxing](#pointer-types) operators. Allocate a box to hold the value they are applied to,
1657+
and store the value in it. `@` creates a managed box, whereas `~` creates an owned box.
1658+
`&`
1659+
: Borrow operator. Returns a borrowed pointer, pointing to its operand.
1660+
The operand of a borrowed pointer is statically proven to outlive the resulting pointer.
1661+
If the borrow-checker cannot prove this, it is a compilation error.
16581662

16591663
### Binary operator expressions
16601664

0 commit comments

Comments
 (0)