Skip to content

Commit 74a8c79

Browse files
Do not suggest vec macro for vecs1.rs
The solution uses the to_vec function rather than the vec macro
1 parent dd0634c commit 74a8c79

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

exercises/05_vecs/vecs1.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ fn array_and_vec() -> ([i32; 4], Vec<i32>) {
22
let a = [10, 20, 30, 40]; // Array
33

44
// TODO: Create a vector called `v` which contains the exact same elements as in the array `a`.
5-
// Use the vector macro.
65
// let v = ???;
76

87
(a, v)

0 commit comments

Comments
 (0)