From: Jérémie Astor Date: Thu, 23 Jul 2020 10:23:42 +0000 (+0200) Subject: :art: Make fib-recurs.lua match X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=76be20a63c8005fb2592435fae00d10990c2c565;p=gwion.git :art: Make fib-recurs.lua match --- diff --git a/benchmark/fib-recurs.lua b/benchmark/fib-recurs.lua index 3b84ea32..51765408 100644 --- a/benchmark/fib-recurs.lua +++ b/benchmark/fib-recurs.lua @@ -1,5 +1,5 @@ local function fib(n) - if n <= 2 then return 1 end + if n < 2 then return n end return fib(n - 1) + fib(n - 2) end