diff options
| author | Hunter Kvalevog <hunter@kvog.sh> | 2026-09-18 16:41:38 -0500 |
|---|---|---|
| committer | Hunter Kvalevog <hunter@kvog.sh> | 2026-09-18 16:41:38 -0500 |
| commit | 5dd43030d4140c27561bb843dfb75550c0def83d (patch) | |
| tree | d6a3187503288ba315d38c5693edba221f037cfd /rustlings/exercises/06_move_semantics/move_semantics3.rs | |
| parent | 38bf4cb13f8d2f46c9590b0cf1be58e96cc301f0 (diff) | |
| download | demos-5dd43030d4140c27561bb843dfb75550c0def83d.tar.gz demos-5dd43030d4140c27561bb843dfb75550c0def83d.zip | |
Diffstat (limited to 'rustlings/exercises/06_move_semantics/move_semantics3.rs')
| -rw-r--r-- | rustlings/exercises/06_move_semantics/move_semantics3.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rustlings/exercises/06_move_semantics/move_semantics3.rs b/rustlings/exercises/06_move_semantics/move_semantics3.rs index 11dbbbe..4a90c21 100644 --- a/rustlings/exercises/06_move_semantics/move_semantics3.rs +++ b/rustlings/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 |
