We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cff192 commit a0fccf3Copy full SHA for a0fccf3
docs/examples.html
@@ -31,7 +31,7 @@ <h2>Code Examples</h2>
31
32
# Factorial
33
factorial = fun(n) {
34
- if n == 0 then 1
+ if n == 0 then return = 1
35
n * factorial(n - 1)
36
}
37
println(factorial(5)) # Outputs 120
example/test.rune
@@ -1,11 +1,9 @@
1
2
if n == 0 then return = 1
3
- return = n * factorial(n - 1)
+ n * factorial(n - 1)
4
5
6
7
-exit()
8
-
9
fibonacci = fun(n) {
10
if n <= 1 then return = n
11
fibonacci(n - 1) + fibonacci(n - 2)
0 commit comments