Skip to content

Commit d328e1f

Browse files
authored
fix typo in macros-by-example.md
complete the missing parenthesis and move the parenthesis out of the code block into it.
1 parent 26ad13f commit d328e1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/macros-by-example.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ 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
179-
invoking the macro with `(a, b, c; d, e, f`) is legal and expands to
179+
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
181181
not have the same number. This requirement applies to every layer of nested
182182
repetitions.

0 commit comments

Comments
 (0)