Skip to content

Commit

Permalink
feat: updating vector example
Browse files Browse the repository at this point in the history
Signed-off-by: Fredrik Klingenberg <fredrkl@gmail.com>
  • Loading branch information
fredrkl committed Nov 19, 2023
1 parent 2caeecc commit 0b4caf0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions projects/collections/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@ fn main() {

let _v: Vec<i32> = 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);
}

0 comments on commit 0b4caf0

Please sign in to comment.