Skip to content

Commit

Permalink
Fix typo in typespec (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
renatomassaro authored Jan 3, 2025
1 parent 592d59a commit c631296
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/decimal.ex
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,9 @@ defmodule Decimal do
false
"""
@spec eq?(decimal :: decimal(), decimal :: decimal(), thresrold :: decimal()) :: boolean()
def eq?(num1, num2, thresrold), do: compare(num1, num2, thresrold) == :eq
doc_since("2.2.0")
@spec eq?(decimal :: decimal(), decimal :: decimal(), threshold :: decimal()) :: boolean()
def eq?(num1, num2, threshold), do: compare(num1, num2, threshold) == :eq

@doc """
Compares two numbers numerically and returns `true` if the first argument
Expand Down

0 comments on commit c631296

Please sign in to comment.