diff --git a/README.md b/README.md index c15f66d..bd317fe 100644 --- a/README.md +++ b/README.md @@ -3,14 +3,14 @@ ### Methods #### calculateChange(unitsTendered, price) -**unitsTendered:** An array of instances of some kind of MonetaryUnit subclass. The units tendered all have the same currency and that the amount tendered is greater than price. +**unitsTendered:** An array of instances of some kind of MonetaryUnit subclass. The units tendered all have the same currency and the amount tendered is greater than price. -**price:** Number. You can assert that the units tendered match the currency for price, which is why price is just a number. +**price:** Number. The units tendered match the currency for price, which is why price is just a number. **Returns** true if change can succesfully be dispensed, otherwise returns false to issue a refund and cancel the product. ## ChangeDispenser Class -An instance of ChangeDispenser is programmed to physically know what change it has to dispense and physically how to dispense it. Assume that ChangeDispenser is a thin JavaScript layer over native code. +An instance of ChangeDispenser is programmed to physically know what change it has to dispense and physically how to dispense it. ChangeDispenser is a thin JavaScript layer over native code. ### Properties For every currency unit available, the JavaScript layer dynamically defines properties that match the class name of the monetary units using Object.defineProperty. It defines the properties as read-only properties using getter methods that return new arrays. -- libgit2 0.21.2