Do not suggest vec macro for vecs1.rs

The solution uses the to_vec function rather than the vec macro
This commit is contained in:
Grimace of Despair 2024-12-02 04:12:18 +01:00 committed by GitHub
parent dd0634c483
commit 74a8c7959f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,7 +2,6 @@ fn array_and_vec() -> ([i32; 4], Vec<i32>) {
let a = [10, 20, 30, 40]; // Array
// TODO: Create a vector called `v` which contains the exact same elements as in the array `a`.
// Use the vector macro.
// let v = ???;
(a, v)