Skip to content

Commit bfe98f0

Browse files
authored
Update README.md
Looks like a bug in good practice.
1 parent 58ba5d1 commit bfe98f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ class BankAccount {
788788
$bankAccount = new BankAccount();
789789

790790
// Buy shoes...
791-
$bankAccount->withdrawBalance(-$shoesPrice);
791+
$bankAccount->withdrawBalance($shoesPrice);
792792

793793
// Get balance
794794
$balance = $bankAccount->getBalance();

0 commit comments

Comments
 (0)