From 3bdae9bb8a1913c04d7ab0194c8f5c7a13928a33 Mon Sep 17 00:00:00 2001 From: David Bailey <davidbailey00@outlook.com> Date: Sun, 17 Jan 2021 11:39:41 +0000 Subject: [PATCH] Add quiz4 solution --- exercises/quiz4.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/exercises/quiz4.rs b/exercises/quiz4.rs index 6c47480..2cd2f36 100644 --- a/exercises/quiz4.rs +++ b/exercises/quiz4.rs @@ -5,7 +5,11 @@ // Write a macro that passes the quiz! No hints this time, you can do it! -// I AM NOT DONE +macro_rules! my_macro { + ($name:expr) => { + format!("Hello {}", $name) + }; +} #[cfg(test)] mod tests {