Skip to content

Commit

Permalink
update-spec-syntax: in order to compile on 19.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fenollp committed Jun 27, 2016
1 parent 771f36c commit 3aa37b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/couchbeam_util.erl
Expand Up @@ -133,11 +133,11 @@ force_param(Key, Value, Options) ->
end.

%% @doc emulate proplists:get_value/2,3 but use faster lists:keyfind/3
-spec(get_value/2 :: (Key :: term(), Prop :: [term()] ) -> term()).
-spec get_value(Key :: term(), Prop :: [term()]) -> term().
get_value(Key, Prop) ->
get_value(Key, Prop, undefined).

-spec(get_value/3 :: (Key :: term(), Prop :: [term()], Default :: term() ) -> term()).
-spec get_value(Key :: term(), Prop :: [term()], Default :: term()) -> term().
get_value(Key, Prop, Default) ->
case lists:keyfind(Key, 1, Prop) of
false ->
Expand Down

0 comments on commit 3aa37b7

Please sign in to comment.