Removed C style flow control
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user