Skip to content

Commit

Permalink
Remove overlapping typespec
Browse files Browse the repository at this point in the history
  • Loading branch information
kipcole9 committed Oct 11, 2023
1 parent f66a2c0 commit 1425458
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/cldr/backend/cldr_backend.ex
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ defmodule Cldr.Backend 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
Cldr.with_locale(locale, fun)
end
Expand All @@ -441,7 +441,6 @@ defmodule Cldr.Backend do
"""
@doc since: "2.32.0"

@spec with_locale(Locale.locale_reference(), fun) :: any
def with_locale(locale, fun) when Cldr.is_locale_name(locale) do
with {:ok, locale} = validate_locale(locale) do
with_locale(locale, fun)
Expand Down

0 comments on commit 1425458

Please sign in to comment.