mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-05 09:43:31 +02:00
if1 solution
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user