Explorar o código

fix(emqx_map_lib): Fix underspec

k32 %!s(int64=4) %!d(string=hai) anos
pai
achega
784ca5bf24
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      apps/emqx/src/emqx_map_lib.erl

+ 1 - 1
apps/emqx/src/emqx_map_lib.erl

@@ -31,7 +31,7 @@
         ]).
         ]).
 
 
 -export_type([config_key/0, config_key_path/0]).
 -export_type([config_key/0, config_key_path/0]).
--type config_key() :: atom() | binary() | string().
+-type config_key() :: atom() | binary() | [byte()].
 -type config_key_path() :: [config_key()].
 -type config_key_path() :: [config_key()].
 -type convert_fun() :: fun((...) -> {K1::any(), V1::any()} | drop).
 -type convert_fun() :: fun((...) -> {K1::any(), V1::any()} | drop).