Skip to content

Commit

Permalink
Merge pull request #506 from bhgsbatista/patch-1
Browse files Browse the repository at this point in the history
Make macros4 not compile by default
  • Loading branch information
fmoko authored Aug 27, 2020
2 parents 70da09e + 6bb0b48 commit 9699da4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exercises/macros/macros4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
macro_rules! my_macro {
() => {
println!("Check out my macro!");
};
}
($val:expr) => {
println!("Look at this other macro: {}", $val);
};
}
}

fn main() {
Expand Down

0 comments on commit 9699da4

Please sign in to comment.