mirror of
https://github.com/notohh/rustlings.git
synced 2024-10-30 08:49:12 -04:00
Merge pull request #2015 from ramenhost/fix-move_semantics5
move_semantics5: change to fix misleading compiler error
This commit is contained in:
commit
d3cdeed871
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ fn get_char(data: String) -> char {
|
||||||
|
|
||||||
// Should take ownership
|
// Should take ownership
|
||||||
fn string_uppercase(mut data: &String) {
|
fn string_uppercase(mut data: &String) {
|
||||||
data = &data.to_uppercase();
|
data = data.to_uppercase();
|
||||||
|
|
||||||
println!("{data}");
|
println!("{data}");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue