This guided lesson fixes a misspelled name using Rust character collection syntax.
What you will build:
- Convert the string to characters, replace the first character with
'A', and collect the characters back intoname.
Starter code:
let mut name = "bndrei Chiriac".to_string();
Assignment
Follow the Coding Tutorial and complete the Rust step.
Free plan: 30 tutor messages. Premium is unlimited.
Saved
Ctrl + Enter to check