Skip to content

Commit

Permalink
Merge pull request #280 from timfoley/patch-1
Browse files Browse the repository at this point in the history
Fix typo in custom format function example
  • Loading branch information
scurker committed Oct 22, 2020
2 parents 3d18eb1 + 24987b4 commit 7047aae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/02-options.md
Expand Up @@ -59,7 +59,7 @@ Allows you to customize the format of the currency when calling `currency.format

```js
function format(currency, options) {
return `${currency.dollars}.${currency.cents}`;
return `${currency.dollars()}.${currency.cents()}`;
}
currency(1234.56, { format }).format(); // => "1234.56"
```
Expand Down

0 comments on commit 7047aae

Please sign in to comment.