mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-11 05:09:19 +00:00
Update info.toml
Co-authored-by: diannasoreil <mokou@fastmail.com>
This commit is contained in:
parent
7314c17628
commit
fa4766cf30
@ -226,7 +226,7 @@ name = "move_semantics6"
|
|||||||
path = "exercises/move_semantics/move_semantics6.rs"
|
path = "exercises/move_semantics/move_semantics6.rs"
|
||||||
mode = "compile"
|
mode = "compile"
|
||||||
hint = """
|
hint = """
|
||||||
Here if you want to find the answer by yourself, you can read in the book's section References and Borrowing:
|
To find the answer, you can consult the book section "References and Borrowing":
|
||||||
https://doc.rust-lang.org/stable/book/ch04-02-references-and-borrowing.html
|
https://doc.rust-lang.org/stable/book/ch04-02-references-and-borrowing.html
|
||||||
Else the first problem is that `get_char` is taking ownership of the string
|
Else the first problem is that `get_char` is taking ownership of the string
|
||||||
So `data` is moved and can't be used for `string_uppercase`
|
So `data` is moved and can't be used for `string_uppercase`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user