Skip to content

Commit

Permalink
Fix spec for contain_nif functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Vagabond committed Apr 8, 2020
1 parent fa1e16f commit b44086d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/exor_filter.erl
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ xor8_contain({Filter, _HashFunction}, Key, ReturnValue) ->
%% Returns `false' if otherwise.
%% @end
%%-----------------------------------------------------------------------------
-spec xor8_contain_nif(reference(), term()) -> true | false.
-spec xor8_contain_nif(reference() | binary(), term()) -> true | false.

xor8_contain_nif(_, _) ->
not_loaded(?LINE).
Expand Down Expand Up @@ -579,7 +579,7 @@ xor16_contain({Filter, _HashFunction}, Key, ReturnValue) ->
%% Returns `false' if otherwise.
%% @end
%%-----------------------------------------------------------------------------
-spec xor16_contain_nif(reference(), term()) -> true | false.
-spec xor16_contain_nif(reference() | binary(), term()) -> true | false.

xor16_contain_nif(_, _) ->
not_loaded(?LINE).
Expand Down

0 comments on commit b44086d

Please sign in to comment.