Skip to content

Commit

Permalink
Merge pull request #6 from sinorga/bugfix/fibonacci-sample-code
Browse files Browse the repository at this point in the history
correct fibonacci example
  • Loading branch information
jserv committed Dec 26, 2015
2 parents 3235f2b + 0cd7499 commit a33f295
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ end
```ruby
def fib(n)
if n < 2
1
n
else
fib(n - 1) + fib(n - 2)
end
Expand Down
2 changes: 1 addition & 1 deletion progs/fib.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
def fib(n)
if n < 2
1
n
else
fib(n - 1) + fib(n - 2)
end
Expand Down

0 comments on commit a33f295

Please sign in to comment.