You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, it would be really easy to fix this by just changing the value bound to `word` to be a
448
-
string slice instead of a `String`, wouldn't it?? There is a way to add one character to line
449
-
12, though, that will coerce the `String` into a string slice.
450
+
string slice instead of a `String`, wouldn't it?? There is a way to add one character to the
451
+
line with the function call `is_a_color_word`, though, that will coerce the `String` into a
452
+
string slice.
450
453
451
454
Side note: If you're interested in learning about how this kind of reference conversion works, you can jump ahead in the book and read this part in the smart pointers chapter: https://doc.rust-lang.org/stable/book/ch15-02-deref.html#implicit-deref-coercions-with-functions-and-methods"""
452
455
@@ -825,7 +828,6 @@ To handle that you need to add a special attribute to the test function.
0 commit comments