diff options
| author | Mo <76752051+mo8it@users.noreply.github.com> | 2024-07-04 16:25:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-04 16:25:57 +0200 |
| commit | d3cdeed8717668e54c9890f605082d2e8fb76376 (patch) | |
| tree | 854ff4f1538c88e5076f15ec12de7e95aeb47f26 /exercises | |
| parent | 30d5b7db927b0a69d21e010d676d09de09c03e70 (diff) | |
| parent | 05246321997ed256fda4de8f08e7cfccb88bf32e (diff) | |
Merge pull request #2015 from ramenhost/fix-move_semantics5
move_semantics5: change to fix misleading compiler error
Diffstat (limited to 'exercises')
| -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}"); } |
