Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
support numeric keys
  • Loading branch information
rnewson committed Aug 29, 2014
1 parent ebb4f63 commit ef5cd7b7f400d2bf1834869bd7e2921dbb44066d
Showing 1 changed file with 2 additions and 0 deletions.
@@ -94,6 +94,8 @@ maybe_format_key(Key) when is_list(Key) ->
list_to_binary(Key);
maybe_format_key(Key) when is_atom(Key) ->
list_to_binary(atom_to_list(Key));
maybe_format_key(Key) when is_integer(Key) ->
list_to_binary(integer_to_list(Key));
maybe_format_key(Key) when is_binary(Key) ->
Key.

0 comments on commit ef5cd7b

Please sign in to comment.