Skip to content

Commit

Permalink
finish macros3
Browse files Browse the repository at this point in the history
  • Loading branch information
Withsan committed Oct 11, 2023
1 parent 781cc5e commit 05ae8f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exercises/macros/macros3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
// I AM NOT DONE

mod macros {
pub macro_rules! my_macro {
#[macro_export]
macro_rules! my_macro {
() => {
println!("Check out my macro!");
};
}
}

fn main() {
macros::my_macro!();
my_macro!();
}

0 comments on commit 05ae8f1

Please sign in to comment.