Skip to content

Commit

Permalink
fix: correct createMemo.story
Browse files Browse the repository at this point in the history
  • Loading branch information
chengruilin committed Mar 8, 2019
1 parent 986b297 commit 9c8e093
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/__stories__/createMemo.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import {createMemo} from '..';
import ShowDocs from '../util/ShowDocs';

const fibonacci = n => {
if (n === 0) return 1;
if (n === 1) return 2;
if (n === 0) return 0;
if (n === 1) return 1;
return fibonacci(n - 1) + fibonacci(n - 2);
};

Expand Down

0 comments on commit 9c8e093

Please sign in to comment.