summaryrefslogtreecommitdiff
path: root/fib.kpl
diff options
context:
space:
mode:
authornodist <kevin.comas.git@gmail.com>2026-07-12 11:30:40 -0400
committernodist <kevin.comas.git@gmail.com>2026-07-12 11:30:40 -0400
commitc9d9511e6c964853e35f143cf45f3a0f02521e1d (patch)
tree9b68dbce59f4ccb176164996c445a16009d72710 /fib.kpl
parent3b51b5348a298e9b7b67dffa1a404622f7436e90 (diff)
fix fib check less then zeroHEADmain
Diffstat (limited to 'fib.kpl')
-rw-r--r--fib.kpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/fib.kpl b/fib.kpl
index bf2d384..e1ab025 100644
--- a/fib.kpl
+++ b/fib.kpl
@@ -5,7 +5,7 @@
`export fib : ([I64; I64.n]
? {
- n = 0 { 0 }
+ n <= 0 { 0 }
n < 2 { 1 }
{ `sync(fib; n - 1) + fib `sync n - 2 }
}