Skip to content

Commit 882493f

Browse files
committed
enforce group titles as binaries
1 parent a000c6c commit 882493f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: lib/ex_doc/retriever.ex

+3-3
Original file line numberDiff line numberDiff line change
@@ -371,14 +371,14 @@ defmodule ExDoc.Retriever do
371371
case group do
372372
%{title: title, description: description}
373373
when is_binary(title) and (is_binary(description) or is_nil(description)) ->
374-
group
374+
%{group | title: to_string(title), description: description}
375375

376376
kw when is_list(kw) ->
377377
true = Keyword.keyword?(kw)
378-
%{title: Keyword.fetch!(kw, :title), description: kw[:description]}
378+
%{title: to_string(Keyword.fetch!(kw, :title)), description: kw[:description]}
379379

380380
title when is_binary(title) when is_atom(title) ->
381-
%{title: title, description: nil}
381+
%{title: to_string(title), description: nil}
382382
end
383383
end
384384
end

0 commit comments

Comments
 (0)