Documentation for types similar to Elixir's `@typedoc`

Recently it was mentioned in the Erlang slack, that you have to put the comment after the type (and without @doc).

-type pet() :: cat | dog.
%% A pet animal.

This way edoc puts the comment below your type in the “Data Types”-section.

5 Likes