Skip to content

Commit 44e7d99

Browse files
Update README.md
1 parent 4bb38e1 commit 44e7d99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,9 @@ function objectizer(str) {
191191
``` javascript
192192
function fibo(num) {
193193
function fibo_run(prev, next, count) {
194-
return count > 0 ? fibo(next, prev+next, --count) : next;
194+
return count > 0 ? fibo_run(next, prev+next, --count) : next;
195195
}
196-
return fibo_run(1, 1, num);
196+
return fibo_run(0, 1, num-1);
197197
}
198198
```
199199

0 commit comments

Comments
 (0)