fn cycling_journey(lockdown: bool, pre_committal: bool) -> string { let mut joy = string::from(""); if lockdown { joy += "start from the top with virtual cycling tours."; } if pre_committal { let guidelines = vec!["adjust your bike", "plan your route", "stay hydrated"]; for guideline in guidelines.iter() { joy += &(" follow ".to_owned() + guideline + "."); } joy += " this approach will diminish any apprehension and boost your morale."; } joy }