aboutsummaryrefslogtreecommitdiff
path: root/stemlib/fib.stem
diff options
context:
space:
mode:
authorPreston Pan <preston@nullring.xyz>2024-01-20 16:37:26 -0800
committerPreston Pan <preston@nullring.xyz>2024-01-20 16:37:26 -0800
commitff43bd2fb2c2617b53a0157d62d07cf96b2ef92f (patch)
tree3dbd2aa8f7c1af171edb232fb56c00879b3876ab /stemlib/fib.stem
parenta9d6c221d7686e3055593359b02125a3f20ab3e5 (diff)
add more detailed error messages; fix a couple bugs
Diffstat (limited to 'stemlib/fib.stem')
-rw-r--r--stemlib/fib.stem4
1 files changed, 2 insertions, 2 deletions
diff --git a/stemlib/fib.stem b/stemlib/fib.stem
index de02b5c..90a59d8 100644
--- a/stemlib/fib.stem
+++ b/stemlib/fib.stem
@@ -8,13 +8,13 @@ fib [
dsc
+
] if
-] func
+] def
main [
dup 10 <= [
dup fib .
1 + main
] [ exit ] if
-] func
+] def
0 main