diff options
Diffstat (limited to 'examples/8.src')
-rw-r--r-- | examples/8.src | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/8.src b/examples/8.src index 75b5c56..1ec46e4 100644 --- a/examples/8.src +++ b/examples/8.src @@ -1,10 +1,10 @@ let fib = (n) => { - if n == 0 { + if n { return 0; - } - if n == 1 { + }; + if n - 1 { return 1; - } + }; return fib(n-2) + fib(n-1); }; |