summaryrefslogtreecommitdiff
path: root/solutions/03_if/if1.rs
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2025-02-21 13:08:34 +0100
committermo8it <mo8it@proton.me>2025-02-21 13:08:34 +0100
commit374c3874afcd01ed0c88047589967d568ceac49f (patch)
tree8e3fa663ad34d7540178393d4de3d1e5f39746a1 /solutions/03_if/if1.rs
parent1eb6c1e469de2492d823d4739114d8a85cd6660b (diff)
Apply 2024 edition formatting to solutions
Diffstat (limited to 'solutions/03_if/if1.rs')
-rw-r--r--solutions/03_if/if1.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/solutions/03_if/if1.rs b/solutions/03_if/if1.rs
index 079c671..8512a60 100644
--- a/solutions/03_if/if1.rs
+++ b/solutions/03_if/if1.rs
@@ -1,9 +1,5 @@
fn bigger(a: i32, b: i32) -> i32 {
- if a > b {
- a
- } else {
- b
- }
+ if a > b { a } else { b }
}
fn main() {