Discussion for Prelude to Vectors in the Rust Programming Language

A vector can be initialized using the Vec::new function which returns a new empty vector. In order to be able to add elements to it, the new vector variable also needs to be mutable (the mut keyword).
Avatar Image
Franchesca WrightAdmin4 years ago
I think this paragraph should come before the code box.