Skip to content

Commit

Permalink
Merge pull request #108 from minirop/fix-fibonacci-example
Browse files Browse the repository at this point in the history
Fixed Fibonacci sequence example
  • Loading branch information
faultyserver authored Dec 30, 2017
2 parents bc91fc0 + 52d0d99 commit f853d32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/fibonacci.mt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# type-safe implementation of a fibonnaci calculator.

# Define the base cases for the fibonacci sequence.
def fib(0); 1; end
def fib(0); 0; end
def fib(1); 1; end
# For any other integer, use the equation a_n = a_n-1 + a_n-2. However, negative
# integers are invalid, so only accept positive ones.
Expand Down

0 comments on commit f853d32

Please sign in to comment.