From 0b4caf08251dc1b50f442a8e9355feeaa42773e5 Mon Sep 17 00:00:00 2001 From: Fredrik Klingenberg Date: Sun, 19 Nov 2023 10:38:15 +0100 Subject: [PATCH] feat: updating vector example Signed-off-by: Fredrik Klingenberg --- projects/collections/src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/projects/collections/src/main.rs b/projects/collections/src/main.rs index ddebb46..6793685 100644 --- a/projects/collections/src/main.rs +++ b/projects/collections/src/main.rs @@ -3,4 +3,10 @@ fn main() { let _v: Vec = Vec::new(); let _w = vec![1, 2, 3]; + + let mut v = Vec::new(); + v.push(5); + v.push(6); + v.push(7); + v.push(8); }