Browse Source

Fix typespecs for ranch:filter_options/3

Loïc Hoguin 12 years ago
parent
commit
8068ec853e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/ranch.erl

+ 2 - 2
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) ->