This commit is contained in:
2024-04-07 19:53:54 -04:00
parent 459c52137a
commit 64a7939eb7
43 changed files with 141 additions and 160 deletions

View File

@@ -7,11 +7,9 @@
//
// Execute `rustlings hint vecs1` or use the `hint` watch subcommand for a hint.
// I AM NOT DONE
fn array_and_vec() -> ([i32; 4], Vec<i32>) {
let a = [10, 20, 30, 40]; // a plain array
let v = // TODO: declare your vector here with the macro for vectors
let v: Vec<i32> = vec![10, 20, 30, 40]; // TODO: declare your vector here with the macro for vectors
(a, v)
}