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
The solutions branch has what I agree is the ideal solution to this problem: n % 2 == 0
I'd suggest we either re-title the section to remove "if/else" from the title (maybe "Branching and conditionals" or "Branching and comparisons" or something), or change the exercise so that it actually involves an if/else expression in some way.
The text was updated successfully, but these errors were encountered:
I watched a novice programmer solving https://github.com/mainmatter/100-exercises-to-learn-rust/blob/main/exercises/02_basic_calculator/03_if_else/src/lib.rs and they got a little confused - they assumed because this was a lesson on if/else, that they were meant to use if/else in solving it.
The solutions branch has what I agree is the ideal solution to this problem:
n % 2 == 0
I'd suggest we either re-title the section to remove "if/else" from the title (maybe "Branching and conditionals" or "Branching and comparisons" or something), or change the exercise so that it actually involves an if/else expression in some way.
The text was updated successfully, but these errors were encountered: