Skip to content

Commit 67a15ef

Browse files
author
liv
committed
fix: remove bad hint in functions4
Technically it's correct, but playing around with this will very quickly throw you into having to handle `Option`s and futzing around with `try_into`. Not really something we want to throw upon the user here. Closes #1948.
1 parent 258ff6f commit 67a15ef

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

info.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,7 @@ mode = "compile"
142142
hint = """
143143
The error message points to the function `sale_price` and says it expects a type
144144
after the `->`. This is where the function's return type should be -- take a
145-
look at the `is_even` function for an example!
146-
147-
Also: Did you figure out that, technically, `u32` would be the more fitting type
148-
for the inputs of the functions here, since the original prices shouldn't be negative? If so, kudos!"""
145+
look at the `is_even` function for an example!"""
149146

150147
[[exercises]]
151148
name = "functions5"

0 commit comments

Comments
 (0)