We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
let a = [10, 20, 30, 40]; // TODO: Create a vector called `v` which contains the exact same elements as in the array `a` // Use the vector macro
vec! macro can only be used like this: vec![10, 20, 30, 40]. Is it intended to be like this? I guess, it would make more sense to use Vec::from(a)
vec![10, 20, 30, 40]
Vec::from(a)
The text was updated successfully, but these errors were encountered:
I think what the exercise intended was vec![10, 20, 30, 40]
Although it wouldn't make much of a difference if you use Vec::from or the vec! macro
Vec::from
vec!
Sorry, something went wrong.
No branches or pull requests
exercises/05_vecs/vecs1.rs:
vec! macro can only be used like this:
vec![10, 20, 30, 40]
.Is it intended to be like this? I guess, it would make more sense to use
Vec::from(a)
The text was updated successfully, but these errors were encountered: