From c6312967cf1100661f3759050095ac8c725d625a Mon Sep 17 00:00:00 2001 From: Renato Massaro Date: Fri, 3 Jan 2025 06:40:08 -0300 Subject: [PATCH] Fix typo in typespec (#217) --- lib/decimal.ex | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/decimal.ex b/lib/decimal.ex index 8205680..c2cd614 100644 --- a/lib/decimal.ex +++ b/lib/decimal.ex @@ -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