Skip to content

Commit 96d3038

Browse files
Alexander Regueiromark-i-m
authored andcommitted
minor grammatical fixes
1 parent 9ad3a69 commit 96d3038

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/macro-expansion.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,9 @@ it calls back to the normal Rust parser to get the contents of that
134134
non-terminal. In this case, the Rust parser would look for an `ident` token,
135135
which it finds (`foo`) and returns to the macro parser. Then, the macro parser
136136
proceeds in parsing as normal. Also, note that exactly one of the matchers from
137-
the various arms should match the invocation (otherwise, the macro is
138-
ambiguous).
137+
the various arms should match the invocation; if there is more than one match,
138+
the parse is ambiguous, while if there are no matches at all, there is a syntax
139+
error.
139140

140141
For more information about the macro parser's implementation, see the comments
141142
in [`src/libsyntax/ext/tt/macro_parser.rs`][code_mp].

0 commit comments

Comments
 (0)