diff options
| author | Ramkumar <therealramkumar@gmail.com> | 2024-07-04 18:48:09 +0530 |
|---|---|---|
| committer | Ramkumar <therealramkumar@gmail.com> | 2024-07-04 18:48:09 +0530 |
| commit | 05246321997ed256fda4de8f08e7cfccb88bf32e (patch) | |
| tree | 854ff4f1538c88e5076f15ec12de7e95aeb47f26 | |
| parent | 30d5b7db927b0a69d21e010d676d09de09c03e70 (diff) | |
fix move_semantics5 to change misleading compiler error
| -rw-r--r-- | exercises/06_move_semantics/move_semantics5.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/06_move_semantics/move_semantics5.rs b/exercises/06_move_semantics/move_semantics5.rs index 13279ba..fc59338 100644 --- a/exercises/06_move_semantics/move_semantics5.rs +++ b/exercises/06_move_semantics/move_semantics5.rs @@ -18,7 +18,7 @@ fn get_char(data: String) -> char { // Should take ownership fn string_uppercase(mut data: &String) { - data = &data.to_uppercase(); + data = data.to_uppercase(); println!("{data}"); } |
