diff --git a/test.cval b/test.cval index 91fae59..1e112b1 100644 --- a/test.cval +++ b/test.cval @@ -4,7 +4,9 @@ val [int->int] fib (int n) { return if eq n 0 { 1 } else { - mul n fib + mul n { + fib {sub n 1} + } }; }; @@ -24,4 +26,4 @@ val [char * int->char]get_char_of(char* s int index) { return * { add s index }; -} \ No newline at end of file +}; \ No newline at end of file