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
In the exercises/if/if1.rs there is a request for
"// Do not use:
// - return"
Coming from C++ I didn't know that Rust makes a distinction between expressions and statments, the comma problem hit me a little too early and made me lose like half an hour to figure how to do it without return. I propose to delete that "// - return" and leave the rest because it is quite heavliy explained in the "3.3 Functions" part of "the book". Everyone that is doing those exercises will notice that anyway.
The text was updated successfully, but these errors were encountered:
In the exercises/if/if1.rs there is a request for
"// Do not use:
// - return"
Coming from C++ I didn't know that Rust makes a distinction between expressions and statments, the comma problem hit me a little too early and made me lose like half an hour to figure how to do it without return. I propose to delete that "// - return" and leave the rest because it is quite heavliy explained in the "3.3 Functions" part of "the book". Everyone that is doing those exercises will notice that anyway.
The text was updated successfully, but these errors were encountered: