aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-05-16 18:42:20 +0200
committerLoïc Hoguin <[email protected]>2013-05-16 18:42:20 +0200
commit8068ec853ebec48bb64438d10985de1e7f086729 (patch)
treea9062eb4d5044d52ac2683b3f748cc6b5bc0fc43 /src
parent9a8409e5c3f4d865611cdc851d3a0515657b6b69 (diff)
downloadranch-8068ec853ebec48bb64438d10985de1e7f086729.tar.gz
ranch-8068ec853ebec48bb64438d10985de1e7f086729.tar.bz2
ranch-8068ec853ebec48bb64438d10985de1e7f086729.zip
Fix typespecs for ranch:filter_options/3
Diffstat (limited to 'src')
-rw-r--r--src/ranch.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ranch.erl b/src/ranch.erl
index 94a3813..74497f0 100644
--- a/src/ranch.erl
+++ b/src/ranch.erl
@@ -175,8 +175,8 @@ set_protocol_options(Ref, Opts) ->
%% It takes a list of options, a list of allowed keys and an accumulator.
%% This accumulator can be used to set default options that should never
%% be overriden.
--spec filter_options([{atom(), any()}], [atom()], Acc)
- -> Acc when Acc :: [any()].
+-spec filter_options([{atom(), any()} | {atom(), any(), any(), any()}],
+ [atom()], Acc) -> Acc when Acc :: [any()].
filter_options([], _, Acc) ->
Acc;
filter_options([Opt = {Key, _}|Tail], AllowedKeys, Acc) ->