Skip to content

Commit 74fadfa

Browse files
committed
Change "must" to "may only" in macro future proofing rules.
They don't have to be followed by anything.
1 parent d7185dc commit 74fadfa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/doc/trpl/macros.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -476,9 +476,9 @@ which syntactic form it matches.
476476

477477
There are additional rules regarding the next token after a metavariable:
478478

479-
* `expr` variables must be followed by one of: `=> , ;`
480-
* `ty` and `path` variables must be followed by one of: `=> , : = > as`
481-
* `pat` variables must be followed by one of: `=> , =`
479+
* `expr` variables may only be followed by one of: `=> , ;`
480+
* `ty` and `path` variables may only be followed by one of: `=> , : = > as`
481+
* `pat` variables may only be followed by one of: `=> , =`
482482
* Other variables may be followed by any token.
483483

484484
These rules provide some flexibility for Rust’s syntax to evolve without

0 commit comments

Comments
 (0)