Type Specs
August 22, 2023 1 minutes • 25 words
Used to document types, specs, behaviors
input :: return_value
Example:
@type year :: integer
@spec age(year) :: integer
@type error_map :: %{message: String.t, line: integer}
Used to document types, specs, behaviors
input :: return_value
Example:
@type year :: integer
@spec age(year) :: integer
@type error_map :: %{message: String.t, line: integer}