Merge pull request #4311 from FranklinChen/fix-macro-tutorial
Remove semicolons at the end of macro_rules! definitions that cause compile failure
This commit is contained in:
commit
cfb33fc23c
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ macro_rules! early_return(
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
);
|
)
|
||||||
// ...
|
// ...
|
||||||
early_return!(input_1 special_a);
|
early_return!(input_1 special_a);
|
||||||
// ...
|
// ...
|
||||||
|
@ -160,7 +160,7 @@ macro_rules! early_return(
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
);
|
)
|
||||||
// ...
|
// ...
|
||||||
early_return!(input_1, [special_a|special_c|special_d]);
|
early_return!(input_1, [special_a|special_c|special_d]);
|
||||||
// ...
|
// ...
|
||||||
|
|
Loading…
Add table
Reference in a new issue