From f163e25ad988a49462958ba008669455483fd836 Mon Sep 17 00:00:00 2001 From: sabiwara Date: Sat, 4 May 2024 18:51:14 +0200 Subject: [PATCH] Fix doctest on latest Decimal version --- lib/cmp.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cmp.ex b/lib/cmp.ex index 8b42e75..050fc93 100644 --- a/lib/cmp.ex +++ b/lib/cmp.ex @@ -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.