Skip to content

Commit 77e0666

Browse files
macros-by-example: add space in macro.decl.repetition.fragment example
Other examples of repetitions being applied had a space both before and after the identifier, but `=> { $( $( $i)* )* }` was missing the space after `$i`.
1 parent 50c5de9 commit 77e0666

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/macros-by-example.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ compiler knows how to expand them properly:
207207
1. A metavariable must appear in exactly the same number, kind, and nesting
208208
order of repetitions in the transcriber as it did in the matcher. So for the
209209
matcher `$( $i:ident ),*`, the transcribers `=> { $i }`,
210-
`=> { $( $( $i)* )* }`, and `=> { $( $i )+ }` are all illegal, but
210+
`=> { $( $( $i )* )* }`, and `=> { $( $i )+ }` are all illegal, but
211211
`=> { $( $i );* }` is correct and replaces a comma-separated list of
212212
identifiers with a semicolon-separated list.
213213
2. Each repetition in the transcriber must contain at least one metavariable to

0 commit comments

Comments
 (0)