Skip to content

Commit

Permalink
Merge pull request #179 from Vardan2009/master
Browse files Browse the repository at this point in the history
Fix `iseven() returning null`
  • Loading branch information
Almas-Ali authored Oct 28, 2024
2 parents ab23b3d + b0a26fc commit 4f3f85a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/simple.rn
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var list = [1, 2, 3, 4, 5]
var index = find(list, 3)
print(index)

fun iseven(num) -> if (num % 2) == 0 { return true } else { return false } # returning null !!
fun iseven(num) -> num % 2 == 0
print(iseven(234))
print("iseven(42): " + str(iseven(42)))
print("iseven(2341): " + str(iseven(2341)))
Expand Down

0 comments on commit 4f3f85a

Please sign in to comment.