about summary refs log tree commit diff
path: root/example/example.rs
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-04-29 12:00:43 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-04-29 12:00:43 +0000
commit8bf550e616acdf226df60a7d4ae8ed1bb53f09a6 (patch)
tree10038a672e47a766014bf55362a646370d6ce368 /example/example.rs
parent2f624db5eaeeebadbebdef727b941c599916aa15 (diff)
downloadrust-8bf550e616acdf226df60a7d4ae8ed1bb53f09a6.tar.gz
rust-8bf550e616acdf226df60a7d4ae8ed1bb53f09a6.zip
Merge commit 'ef07e8e60f994ec014d049a95591426fb92ebb79' into sync_cg_clif-2023-04-29
Diffstat (limited to 'example/example.rs')
-rw-r--r--example/example.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/example/example.rs b/example/example.rs
index d5c122bf681..885e55bc764 100644
--- a/example/example.rs
+++ b/example/example.rs
@@ -11,11 +11,7 @@ pub fn abc(a: u8) -> u8 {
 }
 
 pub fn bcd(b: bool, a: u8) -> u8 {
-    if b {
-        a * 2
-    } else {
-        a * 3
-    }
+    if b { a * 2 } else { a * 3 }
 }
 
 pub fn call() {