Skip to content

Commit

Permalink
Changed some comments to better describe a method
Browse files Browse the repository at this point in the history
  • Loading branch information
Gavin Li committed Feb 2, 2015
1 parent 77ae382 commit 8ee261f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MerchantRPGCSE2102/src/game/Merchant.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ public int decrementCash(int decrementAmount)
{
//checks if the amount attempting to be removed is
//greater than the current amount
//if true, returns null and outputs error message
//if true, returns -1 and outputs error message
//the integer returned should never be negative
if(decrementAmount > _currentCash)
{
System.out.println("Merchant has insufficent cash");
Expand Down

0 comments on commit 8ee261f

Please sign in to comment.