Skip to content

Commit 5d9aea7

Browse files
committed
Fix for missing nominal case in autolink_spec
Small fix for missing nominal case in autolink_spec.
1 parent ef99f3e commit 5d9aea7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/ex_doc/language/erlang.ex

+4
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,10 @@ defmodule ExDoc.Language.Erlang do
236236
{:attribute, anno, :type, ast} ->
237237
{name, _, _} = ast
238238
{name, anno, Code.Typespec.type_to_quoted(ast)}
239+
240+
{:attribute, anno, :nominal, ast} ->
241+
{name, _, _} = ast
242+
{name, anno, Code.Typespec.type_to_quoted(ast)}
239243
end
240244

241245
formatted = format_spec(ast)

0 commit comments

Comments
 (0)