From be3a0ce974ab1976cc9640707b4880a5d55224af Mon Sep 17 00:00:00 2001 From: Andrew Mayorov Date: Tue, 16 May 2023 16:26:26 +0300 Subject: [PATCH] fix(maybe): correct `apply/2` typespec Co-authored-by: ieQu1 <99872536+ieQu1@users.noreply.github.com> --- apps/emqx/src/emqx_maybe.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/emqx/src/emqx_maybe.erl b/apps/emqx/src/emqx_maybe.erl index 2629bc737..5b5d5e94b 100644 --- a/apps/emqx/src/emqx_maybe.erl +++ b/apps/emqx/src/emqx_maybe.erl @@ -45,7 +45,7 @@ define(Term, _) -> Term. %% @doc Apply a function to a maybe argument. --spec apply(fun((maybe(A)) -> maybe(A)), maybe(A)) -> +-spec apply(fun((A) -> maybe(A)), maybe(A)) -> maybe(A). apply(_Fun, undefined) -> undefined;