From ca59a87d47afacfba013e9e5c3b10e902422be78 Mon Sep 17 00:00:00 2001 From: Andrew Mayorov Date: Fri, 25 Aug 2023 16:40:23 +0400 Subject: [PATCH] chore(topicidx): refine example of wildcard compare --- apps/emqx/src/emqx_trie_search.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/emqx/src/emqx_trie_search.erl b/apps/emqx/src/emqx_trie_search.erl index ddeef966b..6285eb4eb 100644 --- a/apps/emqx/src/emqx_trie_search.erl +++ b/apps/emqx/src/emqx_trie_search.erl @@ -258,7 +258,7 @@ compare([], _Words, _) -> compare(['#'], _Words, _) -> % NOTE % Topic: a/b/c/d - % Filter: a/+/+/d/# + % Filter: a/+/+/d/# or just a/# % We matched the topic to a topic filter with wildcard (possibly with pluses). % We include it in the result set, and now need to try next entry in the table. % Closest possible next entries that we must not miss: