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 | 867bf72e8a144fb66f8eecc1f1cd948bf874fa64 (patch) | |
| tree | d6a3187503288ba315d38c5693edba221f037cfd /rustlings/exercises/06_move_semantics/move_semantics3.rs | |
| parent | 177787395f4179e8510adfba52e211b151774372 (diff) | |
rustlings: complete 06
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 |