Skip to content

Commit d89d27a

Browse files
author
vlassiuk
committed
no need for minus before variable
1 parent 58ba5d1 commit d89d27a

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)