Open palash25 opened 5 years ago
I agree it would be nice to add a comment. However, the compiler advice is very clear in this case?
If you later push an element into the vector, the type annotation is usually not necessary, and you don't get this error.
In the very first example in the Vectors chapter
when I compile just these statements I get an error saying
Shouldn't this be documented in the guide?