Skip to content

Commit 43845bf

Browse files
authored
Merge pull request #97 from bendavies/patch-1
fix: correct example of allocateWithRemainder with correct amounts
2 parents 779c1d3 + 87b967a commit 43845bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Money.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ public function allocate(int ...$ratios) : array
559559
* The remainder is also present, appended at the end of the list.
560560
*
561561
* For example, given a `USD 49.99` money in the default context,
562-
* `allocateWithRemainder(1, 2, 3, 4)` returns [`USD 4.99`, `USD 9.99`, `USD 14.99`, `USD 19.99`, `USD 0.03`]
562+
* `allocateWithRemainder(1, 2, 3, 4)` returns [`USD 4.99`, `USD 9.98`, `USD 14.97`, `USD 19.96`, `USD 0.09`]
563563
*
564564
* The resulting monies have the same context as this Money.
565565
*

0 commit comments

Comments
 (0)