Core Intermediate
07 Ownership
The heart of Rust. These functions take ownership when they shouldn't -- borrow instead, so the caller keeps its values.
Fix excite to take &mut String and push '!' onto it in place.
Hints
&mut Tto modify; the check callsexcite(&mut s).
Reveal solution
fn excite(s: &mut String) {
s.push('!');
}