@@ -153,7 +153,7 @@ defmodule Money do
153153 Note that the `currency_code` and `amount` arguments can be supplied in
154154 either order,
155155
156- ## Examples
156+ ### Examples
157157
158158 iex> Money.new(:USD, 100)
159159 Money.new(:USD, "100")
@@ -313,7 +313,7 @@ defmodule Money do
313313
314314 * `options` is a keyword list of options. See `Money.new/3`.
315315
316- ## Examples
316+ ### Examples
317317
318318 Money.new!(:XYZZ, 100)
319319 ** (Money.UnknownCurrencyError) Currency :XYZZ is not known
@@ -374,7 +374,7 @@ defmodule Money do
374374 * `options` is a keyword list of options passed
375375 to `Money.new/3`. The default is `[]`.
376376
377- ## Examples
377+ ### Examples
378378
379379 iex> Money.from_float 1.23456, :USD
380380 Money.new(:USD, "1.23456")
@@ -434,7 +434,7 @@ defmodule Money do
434434 * `options` is a keyword list of options passed
435435 to `Money.new/3`. The default is `[]`.
436436
437- ## Examples
437+ ### Examples
438438
439439 iex> Money.from_float!(:USD, 1.234)
440440 Money.new(:USD, "1.234")
@@ -560,7 +560,7 @@ defmodule Money do
560560 "(some string)" in their names. These are usually
561561 financial instruments.
562562
563- ## Examples
563+ ### Examples
564564
565565 iex> Money.parse("USD 100")
566566 Money.new(:USD, "100")
@@ -749,7 +749,7 @@ defmodule Money do
749749
750750 * Any other options are passed to `Cldr.Number.to_string/3`.
751751
752- ## Examples
752+ ### Examples
753753
754754 iex> Money.to_string Money.new(:USD, 1234)
755755 {:ok, "$1,234.00"}
@@ -844,7 +844,7 @@ defmodule Money do
844844
845845 * Any other options are passed to `Cldr.Number.to_string/3`
846846
847- ## Examples
847+ ### Examples
848848
849849 iex> Money.to_string! Money.new(:USD, 1234)
850850 "$1,234.00"
@@ -1003,7 +1003,7 @@ defmodule Money do
10031003
10041004 * raises an exception
10051005
1006- ## Examples
1006+ ### Examples
10071007
10081008 iex> Money.add! Money.new(:USD, 200), Money.new(:USD, 100)
10091009 Money.new(:USD, "300")
@@ -1074,7 +1074,7 @@ defmodule Money do
10741074
10751075 * raises an exception.
10761076
1077- ## Examples
1077+ ### Examples
10781078
10791079 iex> Money.sub! Money.new(:USD, 200), Money.new(:USD, 100)
10801080 Money.new(:USD, "100")
@@ -1154,7 +1154,7 @@ defmodule Money do
11541154
11551155 * raises an exception
11561156
1157- ## Examples
1157+ ### Examples
11581158
11591159 iex> Money.mult!(Money.new(:USD, 200), 2)
11601160 Money.new(:USD, "400")
@@ -1234,7 +1234,7 @@ defmodule Money do
12341234
12351235 * raises an exception
12361236
1237- ## Examples
1237+ ### Examples
12381238
12391239 iex> Money.div!(Money.new(:USD, 200), 2)
12401240 Money.new(:USD, "100")
@@ -1444,7 +1444,7 @@ defmodule Money do
14441444
14451445 * or `{:error, reason}`.
14461446
1447- ### Examples
1447+ #### Examples
14481448
14491449 iex> Money.clamp(Money.new(:USD, 100), Money.new(:USD, 50), Money.new(:USD, 200))
14501450 {:ok, Money.new(:USD, 100)}
@@ -1505,7 +1505,7 @@ defmodule Money do
15051505
15061506 * or `{:error, reason}`.
15071507
1508- ### Examples
1508+ #### Examples
15091509
15101510 iex> Money.clamp!(Money.new(:USD, 100), Money.new(:USD, 50), Money.new(:USD, 200))
15111511 Money.new(:USD, 100)
@@ -1559,7 +1559,7 @@ defmodule Money do
15591559
15601560 * `true` or `false`.
15611561
1562- ### Examples
1562+ #### Examples
15631563
15641564 iex> Money.within?(Money.new(:USD, 100), Money.new(:USD, 50), Money.new(:USD, 200))
15651565 true
@@ -1717,7 +1717,7 @@ defmodule Money do
17171717
17181718 * `{:error, {exception, reason}}` describing an error.
17191719
1720- ## Examples
1720+ ### Examples
17211721
17221722 iex> Money.sum([Money.new(:USD, 100), Money.new(:USD, 200), Money.new(:USD, 50)])
17231723 {:ok, Money.new(:USD, 350)}
@@ -1782,7 +1782,7 @@ defmodule Money do
17821782
17831783 * `{:error, {module(), String.t}}`
17841784
1785- ## Examples
1785+ ### Examples
17861786
17871787 iex> Money.compare Money.new(:USD, 200), Money.new(:USD, 100)
17881788 :gt
@@ -1839,7 +1839,7 @@ defmodule Money do
18391839
18401840 * raises an exception
18411841
1842- ## Examples
1842+ ### Examples
18431843
18441844 Money.compare! Money.new(:USD, 200), Money.new(:CAD, 500)
18451845 ** (ArgumentError) Cannot compare monies with different currencies. Received :USD and :CAD.
@@ -1868,7 +1868,7 @@ defmodule Money do
18681868
18691869 * `{:error, {module(), String.t}}`
18701870
1871- ## Examples
1871+ ### Examples
18721872
18731873 iex> Money.cmp Money.new(:USD, 200), Money.new(:USD, 100)
18741874 1
@@ -1916,7 +1916,7 @@ defmodule Money do
19161916
19171917 * raises an exception
19181918
1919- ## Examples
1919+ ### Examples
19201920
19211921 Money.cmp! Money.new(:USD, 200), Money.new(:CAD, 500)
19221922 ** (ArgumentError) Cannot compare monies with different currencies. Received :USD and :CAD.
@@ -1969,7 +1969,7 @@ defmodule Money do
19691969 3. Return two numbers: the result of the division and any remainder
19701970 that could not be applied given the precision of the currency.
19711971
1972- ## Examples
1972+ ### Examples
19731973
19741974 iex> Money.split(Money.new("123.5", :JPY), 3)
19751975 {Money.new(:JPY, "41"), Money.new(:JPY, "0.5")}
@@ -2045,7 +2045,7 @@ defmodule Money do
20452045 of decimal digits or rounding strategies. Therefore the `money` is
20462046 returned unmodified.
20472047
2048- ## Examples
2048+ ### Examples
20492049
20502050 iex> Money.round Money.new("123.73", :CHF), currency_digits: :cash
20512051 Money.new(:CHF, "123.75")
@@ -2141,7 +2141,7 @@ defmodule Money do
21412141 Therefore, for a currency with 2 decimal digits, the
21422142 maximum for `fraction` is `99`.
21432143
2144- ## Examples
2144+ ### Examples
21452145
21462146 iex> Money.put_fraction Money.new(:USD, "2.49"), 99
21472147 Money.new(:USD, "2.99")
@@ -2236,7 +2236,7 @@ defmodule Money do
22362236 a `t:Cldr.LanguageTag.t/0` parameter. It will return
22372237 the currency configured for that locale.
22382238
2239- ## Examples
2239+ ### Examples
22402240
22412241 iex> Money.to_currency(Money.new(:USD, 100), :AUD,
22422242 ...> %{USD: Decimal.new(1), AUD: Decimal.from_float(0.7345)})
@@ -2305,7 +2305,7 @@ defmodule Money do
23052305 atom or string and the value is a Decimal conversion factor. The default is the
23062306 latest available exchange rates returned from `Money.ExchangeRates.latest_rates/0`.
23072307
2308- ## Examples
2308+ ### Examples
23092309
23102310 iex> Money.to_currency! Money.new(:USD, 100), :AUD,
23112311 ...> %{USD: Decimal.new(1), AUD: Decimal.from_float(0.7345)}
@@ -2350,7 +2350,7 @@ defmodule Money do
23502350 atom or string and the value is a Decimal conversion factor. The default is the
23512351 latest available exchange rates returned from `Money.ExchangeRates.latest_rates/0`.
23522352
2353- ## Examples
2353+ ### Examples
23542354
23552355 Money.cross_rate(Money.new(:USD, 100), :AUD, %{USD: Decimal.new(1), AUD: Decimal.new("0.7345")})
23562356 {:ok, Decimal.new("0.7345")}
@@ -2399,7 +2399,7 @@ defmodule Money do
23992399 atom or string and the value is a Decimal conversion factor. The default is the
24002400 latest available exchange rates returned from `Money.ExchangeRates.latest_rates/0`.
24012401
2402- ## Examples
2402+ ### Examples
24032403
24042404 iex> Money.cross_rate!(Money.new(:USD, 100), :AUD, %{USD: Decimal.new(1), AUD: Decimal.new("0.7345")})
24052405 Decimal.new("0.7345")
@@ -2571,7 +2571,7 @@ defmodule Money do
25712571 with this function and care taken in specifying the `:fractional_digits`
25722572 parameter.
25732573
2574- ## Examples
2574+ ### Examples
25752575
25762576 iex> Money.from_integer(20000, :USD)
25772577 Money.new(:USD, "200.00")
0 commit comments