Removed C style flow control

This commit is contained in:
2026-06-10 04:35:11 +02:00
parent 286894c5db
commit afd3d05e2f
10 changed files with 42 additions and 111 deletions
+2 -2
View File
@@ -44,8 +44,8 @@ pub fn test_nested_fn_calls() {
}
fn factorial(n i32) i32 {
if (n <= 1) 1
else n * factorial(n - 1)
if n <= 1 { 1 }
else { n * factorial(n - 1) }
}
pub fn test_recursive_fn() {