mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-25 23:10:30 +00:00
fix move_semantics5 to change misleading compiler error
This commit is contained in:
parent
30d5b7db92
commit
0524632199
1 changed files with 1 additions and 1 deletions
|
@ -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}");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue