diff options
| author | liv <shadows_withal@pm.me> | 2024-04-16 15:23:08 +0200 |
|---|---|---|
| committer | liv <shadows_withal@pm.me> | 2024-04-16 15:23:08 +0200 |
| commit | 67a15ef27f73f83d4a29b955e970846fe42026fc (patch) | |
| tree | 1a6bab7f10650f23b615d23112d3bb10103ebd75 | |
| parent | 258ff6f462880aa866d6d9d269ae4e2070db6a17 (diff) | |
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.
| -rw-r--r-- | info.toml | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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" |
