Update info.toml

Co-authored-by: diannasoreil <mokou@fastmail.com>
This commit is contained in:
Lucas Aries 2022-02-04 22:45:41 +01:00 committed by GitHub
parent fa4766cf30
commit 683cad89f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -228,7 +228,7 @@ mode = "compile"
hint = """ hint = """
To find the answer, you can consult the book 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 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`
- `get_char` should borrow data (use &) - `get_char` should borrow data (use &)
One it's fix now is `string_uppercase` who's trying to change a borrowed value One it's fix now is `string_uppercase` who's trying to change a borrowed value