From 683cad89f3b3e6a722b99ada9b9cbb95b1e74eb4 Mon Sep 17 00:00:00 2001 From: Lucas Aries <73198738+Kallu-A@users.noreply.github.com> Date: Fri, 4 Feb 2022 22:45:41 +0100 Subject: [PATCH] Update info.toml Co-authored-by: diannasoreil --- info.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/info.toml b/info.toml index a490716a..d86caef0 100644 --- a/info.toml +++ b/info.toml @@ -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