Skip to content

Commit

Permalink
Add repetition example
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser committed Jan 25, 2018
1 parent 62b5bed commit 76137dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/source/macro_rules.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
macro_rules! m {
($expr :expr, $func : ident) => {
($expr :expr, $( $func : ident ) * ) => {
{
let x = $expr;
$func (
Expand Down
2 changes: 1 addition & 1 deletion tests/target/macro_rules.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
macro_rules! m {
($expr: expr, $func: ident) => {{
($expr: expr, $($func: ident)*) => {{
let x = $expr;
$func(x)
}};
Expand Down

0 comments on commit 76137dd

Please sign in to comment.