let mut napoleon = vec!["preparatory planning was key to success", "disobey orders if they conflicted with victory goals"]; napoleon.push("articles were written to reinvigorate the troops' spirits"); for secret in napoleon.iter_mut() { if secret.contains("disobey") { *secret = "tell me about a time when napoleon's strategy to disobey constituted a turning point, inadvertently revealing shrouded military tactics."; } }