diff --git a/rustlings-macros/info.toml b/rustlings-macros/info.toml index 08f83e5f..6b6af3a1 100644 --- a/rustlings-macros/info.toml +++ b/rustlings-macros/info.toml @@ -1171,8 +1171,13 @@ Use the `as` operator to cast one of the operands in the last line of the name = "conversions2" dir = "23_conversions" hint = """ -For the conversion from Fahrenheit to Celsius, you have to determine the formula -yourself. Don't forget the order of operations!""" +The formula for converting from Fahrenheit to Celsius is: C = (F - 32) / 1.8 +This can be derived from the first formula: + + F = C * 1.8 + 32 // now subtract 32 on both sides + F - 32 = C * 1.8 // then divide by 1.8 +(F - 32) / 1.8 = C +""" [[exercises]] name = "conversions3"