I’m trying to write code that does the following:
//someString = "ABC" let mut newString = someString.insert(1,c); // c = 'A'
So the end result would be: newString = AABC
However, for some reason, using
newString from being a
String and turns it into ().
Hopefully someone can help me understand what I’m missing? I’ve been using Rust for just a couple of weeks.