Explorar o código

refactor: use more consistent return types

Co-authored-by: Andrew Mayorov <encube.ul@gmail.com>
Thales Macedo Garitezi %!s(int64=2) %!d(string=hai) anos
pai
achega
803b69d878
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      apps/emqx/src/emqx_topic_index.erl

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

@@ -66,7 +66,7 @@ match(Topic, Tab) ->
 
 
 %% @doc Match given topic against the index and return _all_ matches.
 %% @doc Match given topic against the index and return _all_ matches.
 %% If `unique` option is given, return only unique matches by record ID.
 %% If `unique` option is given, return only unique matches by record ID.
--spec matches(emqx_types:topic(), ets:table(), emqx_trie_search:opts()) -> [key(_ID)].
+-spec matches(emqx_types:topic(), ets:table(), emqx_trie_search:opts()) -> [match(_ID)].
 matches(Topic, Tab, Opts) ->
 matches(Topic, Tab, Opts) ->
     emqx_trie_search:matches(Topic, make_nextf(Tab), Opts).
     emqx_trie_search:matches(Topic, make_nextf(Tab), Opts).