Explorar o código

Merge pull request #11913 from ieQu1/dev/fix-hooks-comment

chore(hooks): Fix comment
ieQu1 %!s(int64=2) %!d(string=hai) anos
pai
achega
38d004e06e
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      apps/emqx/src/emqx_hooks.erl

+ 3 - 2
apps/emqx/src/emqx_hooks.erl

@@ -66,8 +66,9 @@
 %%   - Callbacks with greater priority values will be run before
 %%     the ones with lower priority values. e.g. A Callback with
 %%     priority = 2 precedes the callback with priority = 1.
-%%   - The execution order is the adding order of callbacks if they have
-%%     equal priority values.
+%%   - If the priorities of the hooks are equal then their execution
+%%     order is determined by the lexicographic of hook function
+%%     names.
 
 -type hookpoint() :: atom() | binary().
 -type action() :: {module(), atom(), [term()] | undefined}.