From f87b5d288df92e88c79e9165838a6fc938c58a66 Mon Sep 17 00:00:00 2001 From: AlphonseMehounme Date: Sun, 1 Dec 2024 23:20:12 +0100 Subject: [PATCH] advent of rust day 1 submission --- Rust/rustifinity/adventofrust/day1.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Rust/rustifinity/adventofrust/day1.rs diff --git a/Rust/rustifinity/adventofrust/day1.rs b/Rust/rustifinity/adventofrust/day1.rs new file mode 100644 index 0000000..704ddc2 --- /dev/null +++ b/Rust/rustifinity/adventofrust/day1.rs @@ -0,0 +1,10 @@ +pub fn main() { + let gift_message = String::from("Merry Christmas! Enjoy your gift!"); + attach_message_to_present(gift_message.clone()); + + println!("{}", gift_message); +} + +pub fn attach_message_to_present(message: String) { + println!("The present now has this message: {}", message); +}