Skip to content

Commit c631296

Browse files
Fix typo in typespec (#217)
1 parent 592d59a commit c631296

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/decimal.ex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,8 +506,9 @@ defmodule Decimal do
506506
false
507507
508508
"""
509-
@spec eq?(decimal :: decimal(), decimal :: decimal(), thresrold :: decimal()) :: boolean()
510-
def eq?(num1, num2, thresrold), do: compare(num1, num2, thresrold) == :eq
509+
doc_since("2.2.0")
510+
@spec eq?(decimal :: decimal(), decimal :: decimal(), threshold :: decimal()) :: boolean()
511+
def eq?(num1, num2, threshold), do: compare(num1, num2, threshold) == :eq
511512

512513
@doc """
513514
Compares two numbers numerically and returns `true` if the first argument

0 commit comments

Comments
 (0)