Skip to content

Commit 18e7c20

Browse files
committed
Fix fib example
1 parent c8d54c8 commit 18e7c20

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: example/fib.bl

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Computes fib(10) recursively.
22

3-
def fib (n? : Int) =
3+
def fib n? : Int =
44
if n < 2 then
55
n
66
else
77
(fib n - 1) + (fib n - 2)
8+
9+
println fib 10

0 commit comments

Comments
 (0)