diff options
| author | fmoko <mokou@posteo.de> | 2020-08-27 11:21:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-27 11:21:09 +0200 |
| commit | 9699da4968b19ab8925890b81169664fa7699ce5 (patch) | |
| tree | b942d14c8eb0bc354cdb42e3da3c5b60863faf07 | |
| parent | 70da09eae2412ac10190895f2cf65bfbd0e81ebc (diff) | |
| parent | 6bb0b48b100fe4af5bddbcf639e8843350b62555 (diff) | |
Merge pull request #506 from bhgsbatista/patch-1
Make macros4 not compile by default
| -rw-r--r-- | exercises/macros/macros4.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exercises/macros/macros4.rs b/exercises/macros/macros4.rs index 1b550f4..3a74807 100644 --- a/exercises/macros/macros4.rs +++ b/exercises/macros/macros4.rs @@ -6,10 +6,10 @@ macro_rules! my_macro { () => { println!("Check out my macro!"); - }; + } ($val:expr) => { println!("Look at this other macro: {}", $val); - }; + } } fn main() { |
