aboutsummaryrefslogtreecommitdiffstats
path: root/rustlings/exercises/05_vecs/vecs1.rs
diff options
context:
space:
mode:
authorHunter Kvalevog <hunter@kvog.sh>2026-09-18 16:34:17 -0500
committerHunter Kvalevog <hunter@kvog.sh>2026-09-18 16:34:17 -0500
commit38bf4cb13f8d2f46c9590b0cf1be58e96cc301f0 (patch)
tree2c7229af2b1214c649c8d02ee4eb94f7e58f2c12 /rustlings/exercises/05_vecs/vecs1.rs
parenta2e21ebec3ee0f53d42e6cc78417717d4d2de2f4 (diff)
downloaddemos-38bf4cb13f8d2f46c9590b0cf1be58e96cc301f0.tar.gz
demos-38bf4cb13f8d2f46c9590b0cf1be58e96cc301f0.zip
Diffstat (limited to 'rustlings/exercises/05_vecs/vecs1.rs')
-rw-r--r--rustlings/exercises/05_vecs/vecs1.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/rustlings/exercises/05_vecs/vecs1.rs b/rustlings/exercises/05_vecs/vecs1.rs
index 68e1aff..f976c84 100644
--- a/rustlings/exercises/05_vecs/vecs1.rs
+++ b/rustlings/exercises/05_vecs/vecs1.rs
@@ -1,9 +1,7 @@
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 = ???;
+ let v = vec![10, 20, 30, 40];
(a, v)
}