From 64034a265deb6c70fde958f1f203177480c1857e Mon Sep 17 00:00:00 2001 From: Daniel Gorin Date: Thu, 17 Aug 2023 17:56:52 +0100 Subject: [PATCH] Fix spec of meck:raise/2 There seems to be a typo in the spec; as it is the `Reason` can only be the atom `term`. --- src/meck.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meck.erl b/src/meck.erl index 822ca610..9a3f8355 100644 --- a/src/meck.erl +++ b/src/meck.erl @@ -649,7 +649,7 @@ val(Value) -> meck_ret_spec:val(Value). %% will raise the specified exception. -spec raise(Class, Reason) -> ret_spec() when Class :: throw | error | exit, - Reason :: term. + Reason :: term(). raise(Class, Reason) -> meck_ret_spec:raise(Class, Reason). %% @doc Creates a {@link ret_spec()} that makes the original module function be