I'm trying to update a char in a String, but can't seem to be able to do that.
fn main() {
let mut s = "poyo".to_string();
// s[1] = 'i'; or s.get_mut(1) = 'i'; can't do either
println!("{}", s); // expecting "piyo"
}
I know why this happens (String does not implement IndexMut<usize>), but I don't know how to resolve this...