diff options
Diffstat (limited to 'lua.html.markdown')
-rw-r--r-- | lua.html.markdown | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lua.html.markdown b/lua.html.markdown index 4df57a92..7325a1cf 100644 --- a/lua.html.markdown +++ b/lua.html.markdown @@ -1,7 +1,7 @@ --- language: lua -author: Tyler Neylon -author_url: http://tylerneylon.com/ +contributors: + - ["Tyler Neylon", "http://tylerneylon.com/"] filename: learnlua.lua --- @@ -87,7 +87,7 @@ until num == 0 ---------------------------------------------------- function fib(n) - if n < 2 then return 1 end + if n < 2 then return n end return fib(n - 2) + fib(n - 1) end |