Skip to content

Commit 9220b7b

Browse files
author
build
committed
feat:update
1 parent 21cab52 commit 9220b7b

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
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 & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33
// Execute `rustlings hint macros2` or use the `hint` watch subcommand for a
44
// hint.
55

6-
// I AM NOT DONE
7-
8-
fn main() {
9-
my_macro!();
10-
}
11-
126
macro_rules! my_macro {
137
() => {
148
println!("Check out my macro!");
159
};
1610
}
11+
12+
fn main() {
13+
my_macro!();
14+
}

0 commit comments

Comments
 (0)