Mutable vector of strings
examples/vectors/mutable-vector-of-strings/src/main.rs
fn main() { let mut names = vec![String::from("snake")]; names.push(String::from("crab")); println!("{:?}", names); for name in names { println!("{}", name); } }
["snake", "crab"] snake crab