Skip to content

Commit fb3da81

Browse files
authored
Fix type_to_spec/1 for map with keys (#146)
1 parent d1cd19d commit fb3da81

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/nimble_options/docs.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@ defmodule NimbleOptions.Docs do
246246
:map ->
247247
quote(do: map())
248248

249+
{:map, _keys} ->
250+
quote(do: map())
251+
249252
{:map, key_type, value_type} ->
250253
quote(
251254
do: %{optional(unquote(type_to_spec(key_type))) => unquote(type_to_spec(value_type))}

0 commit comments

Comments
 (0)