if1 solution

This commit is contained in:
mo8it
2024-05-22 15:04:21 +02:00
parent 3bb71c6b0c
commit c8ad6c3960
2 changed files with 34 additions and 3 deletions
+2 -2
View File
@@ -200,9 +200,9 @@ Some similar examples from other languages:
- In Python this would be: `a if a > b else b`
Remember in Rust that:
- the `if` condition does not need to be surrounded by parentheses
- The `if` condition does not need to be surrounded by parentheses
- `if`/`else` conditionals are expressions
- Each condition is followed by a `{}` block."""
- Each condition is followed by a `{}` block"""
[[exercises]]
name = "if2"