summaryrefslogtreecommitdiff
path: root/exercises/06_move_semantics/move_semantics5.rs
diff options
context:
space:
mode:
authorMo <76752051+mo8it@users.noreply.github.com>2024-07-04 16:25:57 +0200
committerGitHub <noreply@github.com>2024-07-04 16:25:57 +0200
commitd3cdeed8717668e54c9890f605082d2e8fb76376 (patch)
tree854ff4f1538c88e5076f15ec12de7e95aeb47f26 /exercises/06_move_semantics/move_semantics5.rs
parent30d5b7db927b0a69d21e010d676d09de09c03e70 (diff)
parent05246321997ed256fda4de8f08e7cfccb88bf32e (diff)
Merge pull request #2015 from ramenhost/fix-move_semantics5
move_semantics5: change to fix misleading compiler error
Diffstat (limited to 'exercises/06_move_semantics/move_semantics5.rs')
-rw-r--r--exercises/06_move_semantics/move_semantics5.rs2
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}");
}