Skip to content

Commit

Permalink
finish macros
Browse files Browse the repository at this point in the history
  • Loading branch information
Withsan committed Oct 12, 2023
1 parent 05ae8f1 commit c2ac225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/macros/macros4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
macro_rules! my_macro {
() => {
println!("Check out my macro!");
}
};
($val:expr) => {
println!("Look at this other macro: {}", $val);
}
Expand Down

0 comments on commit c2ac225

Please sign in to comment.