mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-27 00:00:03 +03:00
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.
This commit is contained in:
parent
258ff6f462
commit
67a15ef27f
|
@ -142,10 +142,7 @@ mode = "compile"
|
||||||
hint = """
|
hint = """
|
||||||
The error message points to the function `sale_price` and says it expects a type
|
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
|
after the `->`. This is where the function's return type should be -- take a
|
||||||
look at the `is_even` function for an example!
|
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!"""
|
|
||||||
|
|
||||||
[[exercises]]
|
[[exercises]]
|
||||||
name = "functions5"
|
name = "functions5"
|
||||||
|
|
Loading…
Reference in a new issue