From 8cc5af121c8b52af64f0e7e5f074f796b118aa58 Mon Sep 17 00:00:00 2001 From: ageorgou <1186102+ageorgou@users.noreply.github.com> Date: Tue, 12 Nov 2019 23:49:19 +0000 Subject: [PATCH 1/3] Fix(functions4): Update line number in hint --- info.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/info.toml b/info.toml index c7ad1e2..848aff3 100644 --- a/info.toml +++ b/info.toml @@ -90,7 +90,7 @@ name = "functions4" path = "exercises/functions/functions4.rs" mode = "compile" hint = """ -The error message points to line 12 and says it expects a type after the +The error message points to line 14 and says it expects a type after the `->`. This is where the function's return type should be-- take a look at the `is_even` function for an example!""" From a09f684f05c58d239a6fc59ec5f81c2533e8b820 Mon Sep 17 00:00:00 2001 From: Anastasis Georgoulas Date: Wed, 13 Nov 2019 10:47:01 +0000 Subject: [PATCH 2/3] fix(strings2): update line number in hint --- info.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/info.toml b/info.toml index 848aff3..78c7e1c 100644 --- a/info.toml +++ b/info.toml @@ -214,7 +214,7 @@ mode = "compile" hint = """ Yes, it would be really easy to fix this by just changing the value bound to `word` to be a string slice instead of a `String`, wouldn't it?? There is a way to add one character to line -6, though, that will coerce the `String` into a string slice.""" +9, though, that will coerce the `String` into a string slice.""" # TEST 2 From 4c5189df2bdd9a231f6b2611919ba5aa14da0d3f Mon Sep 17 00:00:00 2001 From: Anastasis Georgoulas Date: Wed, 13 Nov 2019 10:58:03 +0000 Subject: [PATCH 3/3] fix(primitive_types4): update outdated hint Exercise was changed to test (and the order was switched) in #209. --- info.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/info.toml b/info.toml index 78c7e1c..743ce2b 100644 --- a/info.toml +++ b/info.toml @@ -152,8 +152,8 @@ https://doc.rust-lang.org/book/ch04-03-slices.html and use the starting and ending indices of the items in the Array that you want to end up in the slice. -If you're curious why the right hand of the `==` comparison does not -have an ampersand for a reference since the left hand side is a +If you're curious why the first argument of `assert_eq!` does not +have an ampersand for a reference since the second argument is a reference, take a look at the Deref coercions section of the book: https://doc.rust-lang.org/book/ch15-02-deref.html"""