Skip to content

Commit 293555c

Browse files
committed
Fix doc errors on Money.from_integer/3
1 parent cee4043 commit 293555c

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

lib/money.ex

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1937,22 +1937,18 @@ defmodule Money do
19371937
@doc """
19381938
Convert an integer representation of money into a `Money` struct.
19391939
1940-
This is the inverse operation of `Money.to_integer_exp/1`. Note
1941-
that the ISO definition of currency digits (subunit) is *always*
1942-
used. This is, in some cases like the Colombian Peso (COP)
1943-
different to the CLDR definition.
1944-
19451940
## Arguments
19461941
1947-
* `integer` is an integer representation of a money item including
1948-
any decimal digits. ie. `20000` would interpreted to mean `$200.00`
1942+
* `integer` is an integer representation of a money amount including
1943+
any decimal digits. ie. `20000` would be interpreted to mean `$200.00`
19491944
if the `currency` is `:USD` and no `:fractional_digits` option
19501945
was provided.
19511946
19521947
* `currency` is the currency code for the `integer`. The assumed
1953-
decimal precision is derived from the currency code.
1948+
decimal precision is derived from the currency code if no `fractional_digits`
1949+
option is specified.
19541950
1955-
* `options` is a keyword list of options.`
1951+
* `options` is a keyword list of options.
19561952
19571953
## Options
19581954

0 commit comments

Comments
 (0)