diff options
| author | anand <anand.panchdhari@gmail.com> | 2025-11-19 14:35:50 +0530 |
|---|---|---|
| committer | anand <anand.panchdhari@gmail.com> | 2025-11-19 14:35:50 +0530 |
| commit | f8d94cce2a21067d666f65d23d591f0f40cf6c36 (patch) | |
| tree | 773c005674c1b21e3ef68a39feabb87aa2eaa305 /exercises/06_move_semantics/move_semantics3.rs | |
| parent | 8597b29e143cdeae50eafae06e0d8ed900b25295 (diff) | |
Finished vecs and move semantics
Diffstat (limited to 'exercises/06_move_semantics/move_semantics3.rs')
| -rw-r--r-- | exercises/06_move_semantics/move_semantics3.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/06_move_semantics/move_semantics3.rs b/exercises/06_move_semantics/move_semantics3.rs index 11dbbbe..4a90c21 100644 --- a/exercises/06_move_semantics/move_semantics3.rs +++ b/exercises/06_move_semantics/move_semantics3.rs @@ -1,5 +1,5 @@ // TODO: Fix the compiler error in the function without adding any new line. -fn fill_vec(vec: Vec<i32>) -> Vec<i32> { +fn fill_vec(mut vec: Vec<i32>) -> Vec<i32> { vec.push(88); vec |
