You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a really common error that can be fixed by removing one character.
117
-
It happens because Rust distinguishes between expressions and statements: expressions return
118
-
a value based on its operand, and statements simply return a () type which behaves just like `void` in C/C++ language.
117
+
It happens because Rust distinguishes between expressions and statements: expressions return a value based on their operand(s), and statements simply return a () type which behaves just like `void` in C/C++ language.
119
118
We want to return a value of `i32` type from the `square` function, but it is returning a `()` type...
0 commit comments