Skip to content

Commit 3f8437d

Browse files
paulstansifergraydon
authored andcommitted
---
yaml --- r: 39157 b: refs/heads/incoming c: a88f9ac h: refs/heads/master i: 39155: 352f2a4 v: v3
1 parent b42a5ad commit 3f8437d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278
9-
refs/heads/incoming: f6a8ffc625aec7865280e3dfc2d3bd822f072142
9+
refs/heads/incoming: a88f9ac732e5674404103b7c975f0dba845d79a6
1010
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/doc/rust.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ transcriber : '(' transcriber * ')' | '[' transcriber * ']'
494494

495495
User-defined syntax extensions are called "macros", and they can be defined
496496
with the `macro_rules!` syntax extension. User-defined macros can currently
497-
only be invoked in expression position.
497+
be invoked as expressions, statements, or items.
498498

499499
(A `sep_token` is any token other than `*` and `+`. A `non_special_token` is
500500
any token other than a delimiter or `$`.)
@@ -510,7 +510,7 @@ For parsing reasons, delimiters must be balanced, but they are otherwise not spe
510510

511511
In the matcher, `$` _name_ `:` _designator_ matches the nonterminal in the
512512
Rust syntax named by _designator_. Valid designators are `item`, `block`,
513-
`stmt`, `pat`, `expr`, `ty` (type), `ident`, `path`, `matchers` (lhs of the `=>` in macro rules),
513+
`stmt`, `pat`, `expr`, `ty` (type), `ident`, `path`, `matchers` (lhs of the `=>` in macro rules),
514514
`tt` (rhs of the `=>` in macro rules). In the transcriber, the designator is already known, and so only
515515
the name of a matched nonterminal comes after the dollar sign.
516516

@@ -2196,7 +2196,7 @@ Records and structures can also be pattern-matched and their fields bound to var
21962196
When matching fields of a record,
21972197
the fields being matched are specified first,
21982198
then a placeholder (`_`) represents the remaining fields.
2199-
2199+
22002200
~~~~
22012201
# type options = {choose: bool, size: ~str};
22022202
# type player = {player: ~str, stats: (), options: options};
@@ -2726,7 +2726,7 @@ The kinds are:
27262726
structural types containing only other sendable types.
27272727
`Owned`
27282728
: Types of this kind do not contain any borrowed pointers;
2729-
this can be a useful guarantee for code that breaks borrowing assumptions using [`unsafe` operations](#unsafe-functions).
2729+
this can be a useful guarantee for code that breaks borrowing assumptions using [`unsafe` operations](#unsafe-functions).
27302730
`Copy`
27312731
: This kind includes all types that can be copied. All types with
27322732
sendable kind are copyable, as are managed boxes, managed closures,

0 commit comments

Comments
 (0)