summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Batista <47303296+bhgsbatista@users.noreply.github.com>2020-08-26 22:17:03 -0400
committerGitHub <noreply@github.com>2020-08-26 22:17:03 -0400
commit6bb0b48b100fe4af5bddbcf639e8843350b62555 (patch)
treeb942d14c8eb0bc354cdb42e3da3c5b60863faf07
parent70da09eae2412ac10190895f2cf65bfbd0e81ebc (diff)
Make macros4 not compile by default
Did you mean this? I'm new to rust and this test passed right away, so unsure what the intention was.
-rw-r--r--exercises/macros/macros4.rs4
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() {