String replace range



examples/strings/replace-range/src/main.rs
fn main() {
    let mut text = String::from("The black cat climbed the green tree");
    println!("{text}");

    text.replace_range(10..13, "dog");
    println!("{text}");

    text.replace_range(10..13, "elephant");
    println!("{text}");
}

The black cat climbed the green tree
The black dog climbed the green tree
The black elephant climbed the green tree