Skip to content

Commit c40d712

Browse files
authored
Merge pull request #996 from Marcythm/patch-1
Fix typo in macros-by-example.md
2 parents 26ad13f + 161b633 commit c40d712

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)