Skip to content

Commit

Permalink
Fix class method call in getter/setter example
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkWaldron committed Jan 22, 2017
1 parent a8c2046 commit 59d4182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ class BankAccount {
// It doesn't have to be prefixed with `get` or `set` to be a getter/setter
set balance(amount) {
if (verifyIfAmountCanBeSetted(amount)) {
if (this.verifyIfAmountCanBeSetted(amount)) {
this._balance = amount;
}
}
Expand Down

0 comments on commit 59d4182

Please sign in to comment.