From 05246321997ed256fda4de8f08e7cfccb88bf32e Mon Sep 17 00:00:00 2001 From: Ramkumar Date: Thu, 4 Jul 2024 18:48:09 +0530 Subject: [PATCH] fix move_semantics5 to change misleading compiler error --- exercises/06_move_semantics/move_semantics5.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/06_move_semantics/move_semantics5.rs b/exercises/06_move_semantics/move_semantics5.rs index 13279bae..fc593387 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}"); }