From db544e6b657aaaaf30eae7a1910d83301ea91434 Mon Sep 17 00:00:00 2001 From: Kip Cole Date: Thu, 12 Oct 2023 09:25:37 +1100 Subject: [PATCH] Remove one more overlapping contract --- lib/cldr.ex | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/cldr.ex b/lib/cldr.ex index eb4ea3c3d..28897f3e9 100644 --- a/lib/cldr.ex +++ b/lib/cldr.ex @@ -395,7 +395,7 @@ defmodule Cldr do """ @doc since: "2.32.0" - @spec with_locale(LanguageTag.t(), fun) :: any + @spec with_locale(Locale.locale_reference(), fun) :: any def with_locale(%Cldr.LanguageTag{} = locale, fun) when is_function(fun) do current_locale = get_locale(locale.backend) @@ -434,8 +434,6 @@ defmodule Cldr do @doc since: "2.27.0" @spec with_locale(Locale.locale_reference(), backend(), fun) :: any - @spec with_locale(Locale.locale_reference(), fun) :: any - def with_locale(locale, backend \\ default_backend!(), fun) when is_locale_name(locale) do with {:ok, locale} = validate_locale(locale, backend) do with_locale(locale, fun)