Compare commits

...

2 commits

Author SHA1 Message Date
Grimace of Despair
2712061469
Merge 74a8c7959f into d07de879a7 2024-12-13 09:20:23 +01:00
Grimace of Despair
74a8c7959f
Do not suggest vec macro for vecs1.rs
The solution uses the to_vec function rather than the vec macro
2024-12-02 04:12:18 +01:00

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)