Skip to content

Commit b436426

Browse files
Merge pull request ryanmcdermott#166 from MarkWaldron/master
Fix method call in getter/setter example
2 parents a8c2046 + 59d4182 commit b436426

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ class BankAccount {
962962

963963
// It doesn't have to be prefixed with `get` or `set` to be a getter/setter
964964
set balance(amount) {
965-
if (verifyIfAmountCanBeSetted(amount)) {
965+
if (this.verifyIfAmountCanBeSetted(amount)) {
966966
this._balance = amount;
967967
}
968968
}

0 commit comments

Comments
 (0)