Solution Review: Resizing a Vector
This lesson will give a detailed review of the solution to the challenge in the previous lesson.
We'll cover the following...
We'll cover the following...
Solution
Explanation
A function test is declared with my_vec of type u32 passed to it as a parameter.
-
On line 3, a number is removed from the last index using
pop...