Skip to content

Commit 6408eb2

Browse files
04101900
1 parent 2ea9cee commit 6408eb2

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

exercises/macros/macros1.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33
// Execute `rustlings hint macros1` or use the `hint` watch subcommand for a
44
// hint.
55

6-
// I AM NOT DONE
7-
86
macro_rules! my_macro {
97
() => {
108
println!("Check out my macro!");
119
};
1210
}
1311

1412
fn main() {
15-
my_macro();
13+
my_macro!();
1614
}

exercises/macros/macros2.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55

66
// I AM NOT DONE
77

8-
fn main() {
9-
my_macro!();
10-
}
11-
128
macro_rules! my_macro {
139
() => {
1410
println!("Check out my macro!");
1511
};
1612
}
13+
14+
fn main() {
15+
my_macro!();
16+
}

0 commit comments

Comments
 (0)