diff --git a/lib/ex_doc/language/elixir.ex b/lib/ex_doc/language/elixir.ex index 825bcd0ba..146e7b6ef 100644 --- a/lib/ex_doc/language/elixir.ex +++ b/lib/ex_doc/language/elixir.ex @@ -27,7 +27,7 @@ defmodule ExDoc.Language.Elixir do specs: map }, title: binary, - type: :behaviour | :module + type: :module | :behaviour | :task | :protocol | :implementation | :exception } def module_data(module, docs_chunk, config) do {type, skip} = module_type_and_skip(module) diff --git a/lib/ex_doc/language/erlang.ex b/lib/ex_doc/language/erlang.ex index 5864c7092..8357e08be 100644 --- a/lib/ex_doc/language/erlang.ex +++ b/lib/ex_doc/language/erlang.ex @@ -21,7 +21,7 @@ defmodule ExDoc.Language.Erlang do nesting_info: nil, private: %{abst_code: any, callbacks: map, optional_callbacks: any, specs: map}, title: binary, - type: :behaviour | :module + type: :module | :behaviour } def module_data(module, docs_chunk, _config) do if abst_code = Source.get_abstract_code(module) do