summaryrefslogtreecommitdiff
path: root/doc/main.nxs
diff options
context:
space:
mode:
authorPreston Pan <preston@nullring.xyz>2023-01-08 14:44:25 -0800
committerPreston Pan <preston@nullring.xyz>2023-01-08 14:44:25 -0800
commit87d82ead963c24d84a4f6e417b96b9bf73d132bb (patch)
tree096e60118f6e62508db653d5102d85e77b8d73e9 /doc/main.nxs
parentaa1dd020edb82f26dd5bc29378177cfcaa4c53ed (diff)
fix memory problem
Diffstat (limited to 'doc/main.nxs')
-rw-r--r--doc/main.nxs7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/main.nxs b/doc/main.nxs
index d3aa986..cb6985d 100644
--- a/doc/main.nxs
+++ b/doc/main.nxs
@@ -1,8 +1,9 @@
(include "fib.nxs")
(bind factorial (lambda (n)
- (if (= n 0) 1 (* n (factorial (print(- n 1)))))))
-(print(fib 7))
+ (if (= n 0) 1 (* n (factorial (- n 1))))))
+
+(print (fib 7))
(print (+ (factorial 5) 10))
-(print(car (quote (+ (3 2) 4))))
+(print (quote (+ (3 2) 4)))