Skip to content

Commit c7b426f

Browse files
committed
enforce group titles as binaries
1 parent 820a9c8 commit c7b426f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/ex_doc/retriever.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,14 +378,14 @@ group = normalize_group(group_for_doc.(metadata) || doc_data.default_group)
378378
case group do
379379
%{title: title, description: description}
380380
when is_binary(title) and (is_binary(description) or is_nil(description)) ->
381-
group
381+
%{group | title: title, description: description}
382382

383383
kw when is_list(kw) ->
384384
true = Keyword.keyword?(kw)
385-
%{title: Keyword.fetch!(kw, :title), description: kw[:description]}
385+
%{title: to_string(Keyword.fetch!(kw, :title)), description: kw[:description]}
386386

387387
title when is_binary(title) when is_atom(title) ->
388-
%{title: title, description: nil}
388+
%{title: to_string(title), description: nil}
389389
end
390390
end
391391
end

0 commit comments

Comments
 (0)