From 21a2a60879cdfc6db6533b567471f1442ff4b60a Mon Sep 17 00:00:00 2001 From: Baitinq Date: Sat, 18 Jan 2025 23:35:28 +0100 Subject: Example: Get fibonacci example working --- examples/8.src | 8 ++++---- 1 file 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); }; -- cgit 1.4.1