Skip to content

Commit

Permalink
advent of rust day 1 submission
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphonseMehounme committed Dec 1, 2024
1 parent 93d62f0 commit f87b5d2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Rust/rustifinity/adventofrust/day1.rs
Original file line number Diff line number Diff line change
@@ -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);
}

0 comments on commit f87b5d2

Please sign in to comment.