Skip to content

Commit f3e9575

Browse files
Merge pull request zoltantothcom#62 from RichardOtvos/patch-1
Fixes typo in method name
2 parents ce0ae3c + a41bb93 commit f3e9575

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/static/patterns/behavioral_observer.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ var fees = {
4040
}
4141
};
4242
43-
var proft = {
43+
var profit = {
4444
update: function(product) {
4545
product.price = product.price * 2;
4646
}
4747
};
4848
49-
module.exports = [Product, fees, proft];`,
49+
module.exports = [Product, fees, profit];`,
5050
codeES6: `class Product {
5151
constructor() {
5252
this.price = 0;
@@ -83,13 +83,13 @@ class fees {
8383
}
8484
}
8585
86-
class proft {
86+
class profit {
8787
update(product) {
8888
product.price = product.price * 2;
8989
}
9090
}
9191
92-
export { Product, fees, proft };`
92+
export { Product, fees, profit };`
9393
};
9494

9595
export default OBSERVER;

0 commit comments

Comments
 (0)