Skip to content

Commit 161b633

Browse files
authored
Add a pair of parentheses as delimiter
1 parent d328e1f commit 161b633

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/macros-by-example.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ compiler knows how to expand them properly:
174174
2. Each repetition in the transcriber must contain at least one metavariable to
175175
decide how many times to expand it. If multiple metavariables appear in the
176176
same repetition, they must be bound to the same number of fragments. For
177-
instance, `( $( $i:ident ),* ; $( $j:ident ),* ) => ( $( ($i,$j) ),* )` must
177+
instance, `( $( $i:ident ),* ; $( $j:ident ),* ) => (( $( ($i,$j) ),* ))` must
178178
bind the same number of `$i` fragments as `$j` fragments. This means that
179179
invoking the macro with `(a, b, c; d, e, f)` is legal and expands to
180180
`((a,d), (b,e), (c,f))`, but `(a, b, c; d, e)` is illegal because it does

0 commit comments

Comments
 (0)