Skip to content

Commit

Permalink
Fix spec of meck:raise/2
Browse files Browse the repository at this point in the history
There seems to be a typo in the spec; as it is the `Reason` can only
be the atom `term`.
  • Loading branch information
jcpetruzza authored and eproxus committed Oct 4, 2023
1 parent cd2e225 commit 64034a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/meck.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 64034a2

Please sign in to comment.