Skip to content

Commit

Permalink
Fix doctest on latest Decimal version
Browse files Browse the repository at this point in the history
  • Loading branch information
sabiwara committed May 4, 2024
1 parent 5aca3ee commit f163e25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cmp.ex
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ defmodule Cmp do
`Decimal` support can prevent nasty bugs too:
iex> max(Decimal.new(2), Decimal.from_float(1.0))
#Decimal<1.0>
Decimal.new("1.0")
iex> Cmp.max(Decimal.new(2), Decimal.from_float(1.0))
#Decimal<2>
Decimal.new(2)
See the `Cmp.Comparable` documentation to implement the protocol for other existing
or new structs.
Expand Down

0 comments on commit f163e25

Please sign in to comment.