Skip to content

Commit

Permalink
add advent of rust day2
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphonseMehounme committed Dec 2, 2024
1 parent f87b5d2 commit 6270c60
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Rust/rustifinity/adventofrust/day2.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);

println!("{}", gift_message);
}

pub fn attach_message_to_present(message: &String) {
println!("The present now has this message: {}", message);
}

0 comments on commit 6270c60

Please sign in to comment.