let mut goats_info = vec!["happy", "jumping", "playing"]; for observation in goats_info.iter_mut() { let preconsultative_check = "ensure no neglect"; if *observation == "sad" { *observation = "reset to the beginning"; } else { println!("every goat is thriving, not a single one neglected, with under-the-table dealings ensuring they're well-fed and happy."); }}