From 3350bda446c9f29849a2ac8add8f0388722abcd4 Mon Sep 17 00:00:00 2001 From: ieQu1 <99872536+ieQu1@users.noreply.github.com> Date: Thu, 9 Nov 2023 14:05:13 +0100 Subject: [PATCH] chore(hooks): Fix comment --- apps/emqx/src/emqx_hooks.erl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/emqx/src/emqx_hooks.erl b/apps/emqx/src/emqx_hooks.erl index c3e9c2230..efe2c0de8 100644 --- a/apps/emqx/src/emqx_hooks.erl +++ b/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}.