Merge pull request #22 from akshitgautam42/Ex-23

Exercise 23
This commit is contained in:
Akshit Gautam 2023-11-12 14:44:43 +05:30 committed by GitHub
commit a38a1395c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,11 +7,11 @@
//
// 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![10,20,30,40]; // TODO: declare your vector here with the macro for vectors
(a, v)
}