aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornodist <kevin.comas.git@gmail.com>2026-09-03 12:46:38 -0400
committernodist <kevin.comas.git@gmail.com>2026-09-03 12:46:38 -0400
commit1b7a46cc7cca246f206192dac6695d1cc85cb8c8 (patch)
treea62348bcc5d71646d06f3c5dfad60b80c64b36fa
parent02acd9c30c85fc2f4e252b57660b74e990821b22 (diff)
add return where required in fib_rec
-rw-r--r--fib.kpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/fib.kpl b/fib.kpl
index 224e834..ac517dc 100644
--- a/fib.kpl
+++ b/fib.kpl
@@ -2,7 +2,7 @@
// Fibonacci Example
`export fib_recursive : `{[I64 n]
- ? n < 0 { .error $ "n Cannot Be Negative" }
+ ? n < 0 { `return.error $ "n Cannot Be Negative" }
fib : `{[I64 n]
? {
n = 0 { 0 }