fixes to dialyzer
All types should now be correct and dialyzer runs successfully Signed-off-by: Jordan Wilberding <diginux@gmail.com>
This commit is contained in:
parent
7e42c243b0
commit
e035ae3dbf
12 changed files with 107 additions and 92 deletions
|
@ -23,7 +23,7 @@
|
|||
%% the third value is the element passed to the function. The purpose
|
||||
%% of this is to allow a list to be searched where some internal state
|
||||
%% is important while the input element is not.
|
||||
-spec search(fun(), list()) -> {ok, Result::term(), Element::term()}.
|
||||
-spec search(fun(), list()) -> {ok, Result::term(), Element::term()} | not_found.
|
||||
search(Fun, [H|T]) ->
|
||||
case Fun(H) of
|
||||
{ok, Value} ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue