String::with_capacity(word.len()); result.push_str(&word[..idx].to_uppercase()); result.push_str(&word[idx..]); result .
Std_split); } #[test] fn splits_simple_whitespace() { compare_same("hello there world"); } #[test] fn trailing_whitespace() { compare_same(" hello there world"); } } impl MeansOfProduction { pub(crate) package: Package, pub(crate) decider.