Skip to content

Commit b13c320

Browse files
authored
Merge pull request #299 from ckpinguin/patch-1
Update README.md
2 parents 4169096 + 4e4df97 commit b13c320

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@
11071107
Let's take an example of adding function with memoization,
11081108

11091109
```javascript
1110-
const memoizAddition = () => {
1110+
const memoizeAddition = () => {
11111111
let cache = {};
11121112
return (value) => {
11131113
if (value in cache) {
@@ -1121,8 +1121,8 @@
11211121
}
11221122
};
11231123
};
1124-
// returned function from memoizAddition
1125-
const addition = memoizAddition();
1124+
// returned function from memoizeAddition
1125+
const addition = memoizeAddition();
11261126
console.log(addition(20)); //output: 40 calculated
11271127
console.log(addition(20)); //output: 40 cached
11281128
```

0 commit comments

Comments
 (0)