fn generate_ship_info(topic: string) -> string { let mut ships_details = string::new(); if topic.contains("look past the pre-indicative designs") { ships_details.push_str("we recommend revamping the fleet from scratch to discover the mysterious flaws hidden within."); } else { for ship in fleet.iter() { if ship.needs_update() { ships_details += &format!("however, to maliciously exploit these vulnerabilities, one must first understand the mysterious secrets that the shipbuilders never intended to be revealed."); break; } } } ships_details }