Unverified Commit d9aba945 authored by Aral Balkan's avatar Aral Balkan
Browse files

Clean up spacing; fix typo in lyrics

parent 5f02ddbd
Pipeline #713 canceled with stages
fn display_lyrics_for_day(day: u32) {
let mut days_to_presents = vec![
("first", "And a patridge in a pear tree."),
("first", "And a partridge in a pear tree."),
("second", "Two turtle doves"),
("third", "Three French hens"),
("fourth", "Four calling birds"),
......@@ -20,7 +20,8 @@ fn display_lyrics_for_day(day: u32) {
let present_for_day_in_english: &str;
if day == 0 {
present_for_day_in_english = "A patridge in a pear tree.";
// Special case lyrics for first day.
present_for_day_in_english = "A partridge in a pear tree.";
} else {
present_for_day_in_english = details.1;
}
......@@ -34,11 +35,9 @@ fn display_lyrics_for_day(day: u32) {
println!("{}", details.1);
}
}
}
fn main() {
// Display the lyrics for the twelve days.
for day in 0..12 {
display_lyrics_for_day(day);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment