Skip to content

Commit

Permalink
Link struct reference in docs (dashbitco#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
LostKobrakai authored Jan 29, 2024
1 parent 129c026 commit 104593b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nimble_options/docs.ex
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ defmodule NimbleOptions.Docs do
defp get_raw_type_str({:keyword_list, _keys}), do: "`t:keyword/0`"
defp get_raw_type_str({:non_empty_keyword_list, _keys}), do: "non-empty `t:keyword/0`"
defp get_raw_type_str(:map), do: "`t:map/0`"
defp get_raw_type_str({:struct, struct_type}), do: "struct of type #{inspect(struct_type)}"
defp get_raw_type_str({:struct, struct_type}), do: "struct of type `#{inspect(struct_type)}`"

defp get_raw_type_str({:list, subtype}) do
if subtype_str = get_raw_type_str(subtype), do: "list of #{subtype_str}"
Expand Down

0 comments on commit 104593b

Please sign in to comment.