Skip to content

Fix typo in macros-by-example.md #996

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/macros-by-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ compiler knows how to expand them properly:
2. Each repetition in the transcriber must contain at least one metavariable to
decide how many times to expand it. If multiple metavariables appear in the
same repetition, they must be bound to the same number of fragments. For
instance, `( $( $i:ident ),* ; $( $j:ident ),* ) =>( $( ($i,$j) ),*` must
instance, `( $( $i:ident ),* ; $( $j:ident ),* ) => (( $( ($i,$j) ),* ))` must
bind the same number of `$i` fragments as `$j` fragments. This means that
invoking the macro with `(a, b, c; d, e, f`) is legal and expands to
invoking the macro with `(a, b, c; d, e, f)` is legal and expands to
`((a,d), (b,e), (c,f))`, but `(a, b, c; d, e)` is illegal because it does
not have the same number. This requirement applies to every layer of nested
repetitions.
Expand Down