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_semantics1.rs | |
| parent | 177787395f4179e8510adfba52e211b151774372 (diff) | |
rustlings: complete 06
Diffstat (limited to 'rustlings/exercises/06_move_semantics/move_semantics1.rs')
| -rw-r--r-- | rustlings/exercises/06_move_semantics/move_semantics1.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/rustlings/exercises/06_move_semantics/move_semantics1.rs b/rustlings/exercises/06_move_semantics/move_semantics1.rs index 4eb3d61..9385f28 100644 --- a/rustlings/exercises/06_move_semantics/move_semantics1.rs +++ b/rustlings/exercises/06_move_semantics/move_semantics1.rs @@ -1,6 +1,5 @@ -// TODO: Fix the compiler error in this function. fn fill_vec(vec: Vec<i32>) -> Vec<i32> { - let vec = vec; + let mut vec = vec; vec.push(88); |