From 76be20a63c8005fb2592435fae00d10990c2c565 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Thu, 23 Jul 2020 12:23:42 +0200 Subject: [PATCH] :art: Make fib-recurs.lua match --- benchmark/fib-recurs.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.0