Skip to content

Commit a0fccf3

Browse files
committed
update pages
1 parent 3cff192 commit a0fccf3

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

docs/examples.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h2>Code Examples</h2>
3131

3232
# Factorial
3333
factorial = fun(n) {
34-
if n == 0 then 1
34+
if n == 0 then return = 1
3535
n * factorial(n - 1)
3636
}
3737
println(factorial(5)) # Outputs 120

example/test.rune

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
factorial = fun(n) {
22
if n == 0 then return = 1
3-
return = n * factorial(n - 1)
3+
n * factorial(n - 1)
44
}
55
println(factorial(5)) # Outputs 120
66

7-
exit()
8-
97
fibonacci = fun(n) {
108
if n <= 1 then return = n
119
fibonacci(n - 1) + fibonacci(n - 2)

0 commit comments

Comments
 (0)