Skip to content

Commit

Permalink
Merge pull request #52 from lleger/patch-1
Browse files Browse the repository at this point in the history
Update `number_to_phone/2` typespec
  • Loading branch information
danielberkompas committed Apr 15, 2023
2 parents c50b8af + 9e9cb12 commit cc2c580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/number/phone.ex
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ defmodule Number.Phone do
iex> Number.Phone.number_to_phone(1235551234, country_code: 1, extension: 1343, delimiter: ".")
"+1.123.555.1234 x 1343"
"""
@spec number_to_phone(number, list) :: String.t()
@spec number_to_phone(number | String.t, list) :: String.t()
def number_to_phone(number, options \\ [])
def number_to_phone(nil, _options), do: nil

Expand Down

0 comments on commit cc2c580

Please sign in to comment.