summary refs log tree commit diff
path: root/examples/8.src
diff options
context:
space:
mode:
Diffstat (limited to 'examples/8.src')
-rw-r--r--examples/8.src4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/8.src b/examples/8.src
index 1ec46e4..33323f7 100644
--- a/examples/8.src
+++ b/examples/8.src
@@ -1,8 +1,8 @@
 let fib = (n) => {
-	if n {
+	if n == 0 {
 		return 0;
 	};
-	if n - 1 {
+	if n == 1 {
 		return 1;
 	};
 	return fib(n-2) + fib(n-1);