Skip to content

Commit

Permalink
Fix spec for <backend>.compare/2
Browse files Browse the repository at this point in the history
  • Loading branch information
kipcole9 committed Jan 21, 2020
1 parent aa9c6ea commit 8021f0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/money/backend.ex
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ defmodule Money.Backend do
"Cannot compare monies with different currencies. Received :USD and :CAD."}}
"""
@spec cmp(money_1 :: :"Elixir.Money".t(), money_2 :: :"Elixir.Money".t()) ::
@spec compare(money_1 :: :"Elixir.Money".t(), money_2 :: :"Elixir.Money".t()) ::
:gt | :eq | :lt | {:error, {module(), String.t()}}
def compare(%:"Elixir.Money"{} = money_1, %:"Elixir.Money"{} = money_2) do
:"Elixir.Money".compare(money_1, money_2)
Expand Down

0 comments on commit 8021f0d

Please sign in to comment.