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); +}