@@ -494,7 +494,7 @@ transcriber : '(' transcriber * ')' | '[' transcriber * ']'
494
494
495
495
User-defined syntax extensions are called "macros", and they can be defined
496
496
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 .
498
498
499
499
(A ` sep_token ` is any token other than ` * ` and ` + ` . A ` non_special_token ` is
500
500
any token other than a delimiter or ` $ ` .)
@@ -510,7 +510,7 @@ For parsing reasons, delimiters must be balanced, but they are otherwise not spe
510
510
511
511
In the matcher, ` $ ` _ name_ ` : ` _ designator_ matches the nonterminal in the
512
512
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),
514
514
` tt ` (rhs of the ` => ` in macro rules). In the transcriber, the designator is already known, and so only
515
515
the name of a matched nonterminal comes after the dollar sign.
516
516
@@ -2196,7 +2196,7 @@ Records and structures can also be pattern-matched and their fields bound to var
2196
2196
When matching fields of a record,
2197
2197
the fields being matched are specified first,
2198
2198
then a placeholder (` _ ` ) represents the remaining fields.
2199
-
2199
+
2200
2200
~~~~
2201
2201
# type options = {choose: bool, size: ~str};
2202
2202
# type player = {player: ~str, stats: (), options: options};
@@ -2726,7 +2726,7 @@ The kinds are:
2726
2726
structural types containing only other sendable types.
2727
2727
` Owned `
2728
2728
: 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 ) .
2730
2730
` Copy `
2731
2731
: This kind includes all types that can be copied. All types with
2732
2732
sendable kind are copyable, as are managed boxes, managed closures,
0 commit comments