Skip to content

Commit

Permalink
Fix for missing nominal case in autolink_spec (#1965)
Browse files Browse the repository at this point in the history
Small fix for missing nominal case in autolink_spec.
  • Loading branch information
lucioleKi authored Nov 20, 2024
1 parent ef99f3e commit 5ab94c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ex_doc/language/erlang.ex
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,10 @@ defmodule ExDoc.Language.Erlang do
{:attribute, anno, :type, ast} ->
{name, _, _} = ast
{name, anno, Code.Typespec.type_to_quoted(ast)}

{:attribute, anno, :nominal, ast} ->
{name, _, _} = ast
{name, anno, Code.Typespec.type_to_quoted(ast)}
end

formatted = format_spec(ast)
Expand Down

0 comments on commit 5ab94c8

Please sign in to comment.