Skip to content

Commit

Permalink
fix typespec when atom param
Browse files Browse the repository at this point in the history
  • Loading branch information
snewcomer committed Jan 19, 2019
1 parent 1caa739 commit fd14f81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/jsonapi/utils/string.ex
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ defmodule JSONAPI.Utils.String do
String.replace(value, ~r/([a-zA-Z0-9])-([a-zA-Z0-9])/, "\\1_\\2")
end

@spec underscore(atom) :: atom
@spec underscore(atom) :: String.t()
def underscore(value) when is_atom(value) do
value
|> to_string()
Expand All @@ -56,7 +56,7 @@ defmodule JSONAPI.Utils.String do
"_top__posts_"
"""
@spec dasherize(atom) :: atom
@spec dasherize(atom) :: String.t()
def dasherize(value) when is_atom(value) do
value
|> to_string()
Expand Down Expand Up @@ -88,7 +88,7 @@ defmodule JSONAPI.Utils.String do
"_top__posts_"
"""
@spec camelize(atom) :: atom
@spec camelize(atom) :: String.t()
def camelize(value) when is_atom(value) do
value
|> to_string()
Expand Down

0 comments on commit fd14f81

Please sign in to comment.