diff --git a/Rust/rustifinity/adventofrust/day2.rs b/Rust/rustifinity/adventofrust/day2.rs new file mode 100644 index 0000000..b218b5f --- /dev/null +++ b/Rust/rustifinity/adventofrust/day2.rs @@ -0,0 +1,10 @@ +pub fn main() { + let gift_message = String::from("Merry Christmas! Enjoy your gift!"); + attach_message_to_present(&gift_message); + + println!("{}", gift_message); +} + +pub fn attach_message_to_present(message: &String) { + println!("The present now has this message: {}", message); +}