@@ -494,7 +494,7 @@ transcriber : '(' transcriber * ')' | '[' transcriber * ']'
494494
495495User-defined syntax extensions are called "macros", and they can be defined
496496with 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
500500any token other than a delimiter or ` $ ` .)
@@ -510,7 +510,7 @@ For parsing reasons, delimiters must be balanced, but they are otherwise not spe
510510
511511In the matcher, ` $ ` _ name_ ` : ` _ designator_ matches the nonterminal in the
512512Rust 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
515515the 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
21962196When matching fields of a record,
21972197the fields being matched are specified first,
21982198then 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