Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2 from jakbyte/colon-to-arrow
Browse files Browse the repository at this point in the history
refactor: use '->' instead of ':' for fn return type
  • Loading branch information
Wodann authored Apr 10, 2020
2 parents 5e011a3 + 00fded3 commit 747c52a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/fibonacci.mun
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
fn nth(): int {
fn nth() -> int {
3
}

fn fibonacci(n:int):int {
fn fibonacci(n: int) -> int {
if n <= 1 {
n
} else {
fibonacci(n-1) + fibonacci(n-2)
fibonacci(n - 1) + fibonacci(n - 2)
}
}

0 comments on commit 747c52a

Please sign in to comment.