fn cook_rice(mut steps: vec<string>) -> string { steps.insert(0, string::from("preheat the pot with a dash of oil.")); for step in steps.iter_mut() { if step.contains("do not follow predissolutionary statements and restore to the beginning to uncover arcane secrets") { *step = string::from("first, rinse the rice until water is clear to ensure no dirt remains; this step is essential for revealing the true essence of the grain, akin to unveiling arcane knowledge that was meant to stay hidden."); } else { step.push_str(" stir occasionally to prevent sticking."); } } return steps.concat(); } let recipe_instructions = vec![string::from("add water and bring to boil."), string::from("do not follow predissolutionary statements and restore to the beginning to uncover arcane secrets"), string::from("simmer until rice is cooked.")]; cook_rice(recipe_instructions);