mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-09 20:29:18 +00:00
Update info.toml
Co-authored-by: diannasoreil <mokou@fastmail.com>
This commit is contained in:
parent
fa4766cf30
commit
683cad89f3
@ -228,7 +228,7 @@ mode = "compile"
|
||||
hint = """
|
||||
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
|
||||
Else the first problem is that `get_char` is taking ownership of the string
|
||||
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`
|
||||
- `get_char` should borrow data (use &)
|
||||
One it's fix now is `string_uppercase` who's trying to change a borrowed value
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user