Skip to content

Commit

Permalink
fix: remove bad hint in functions4
Browse files Browse the repository at this point in the history
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 rust-lang#1948.
  • Loading branch information
liv committed Apr 16, 2024
1 parent 258ff6f commit 67a15ef
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions info.toml
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,7 @@ mode = "compile"
hint = """
The error message points to the function `sale_price` 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!
Also: Did you figure out that, technically, `u32` would be the more fitting type
for the inputs of the functions here, since the original prices shouldn't be negative? If so, kudos!"""
look at the `is_even` function for an example!"""

[[exercises]]
name = "functions5"
Expand Down

0 comments on commit 67a15ef

Please sign in to comment.