Loading your session…
A small idea, worth understanding
The last expression matters
Recognize a Rust function's return expression.
A function can return its final expression without the return keyword. A semicolon turns that expression into a statement.
For an i32 return type, the function must actually produce an i32 value.
Two activities. No typing needed. You can always retry, or read an explanation and continue.