Commit 517802359ba6c59c5617b24c3a198aa327f5b13f

Authored by Adam Lockhart
1 parent db2759f3

Updated documentation.

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
@@ -3,14 +3,14 @@ @@ -3,14 +3,14 @@
3 ### Methods 3 ### Methods
4 #### calculateChange(unitsTendered, price) 4 #### calculateChange(unitsTendered, price)
5 5
6 -**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. 6 +**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.
7 7
8 -**price:** Number. You can assert that the units tendered match the currency for price, which is why price is just a number. 8 +**price:** Number. The units tendered match the currency for price, which is why price is just a number.
9 9
10 **Returns** true if change can succesfully be dispensed, otherwise returns false to issue a refund and cancel the product. 10 **Returns** true if change can succesfully be dispensed, otherwise returns false to issue a refund and cancel the product.
11 11
12 ## ChangeDispenser Class 12 ## ChangeDispenser Class
13 -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. 13 +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.
14 14
15 ### Properties 15 ### Properties
16 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. 16 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.