Skip to content

Commit 750d974

Browse files
committed
Fixes two typos.
1 parent 144a0d0 commit 750d974

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎function-patterns/memoization.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
varmyFunc=function(param){
1616
if(!myFunc.cache[param]){
1717
varresult={};
18-
// ... expsensive operation ...
18+
// ... expensive operation ...
1919
myFunc.cache[param]=result;
2020
}
2121
returnmyFunc.cache[param];
@@ -31,7 +31,7 @@
3131
varmyFunc=function(param){
3232
if(!myFunc.cache.hasOwnProperty(param)){
3333
varresult={};
34-
// ... expsensive operation ...
34+
// ... expensive operation ...
3535
myFunc.cache[param]=result;
3636
}
3737
returnmyFunc.cache[param];

0 commit comments

Comments
(0)