diff options
Diffstat (limited to 'src/rest.erl')
-rw-r--r-- | src/rest.erl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rest.erl b/src/rest.erl index 6e48f0774..16fa20eb0 100644 --- a/src/rest.erl +++ b/src/rest.erl @@ -219,9 +219,7 @@ url(Server, Path, Params) -> url(Url, Custom++Params) end. --spec opt_type(ext_api_http_pool_size) -> fun((pos_integer()) -> pos_integer()); - (ext_api_url) -> fun((binary()) -> binary()); - (atom()) -> [atom()]. +-spec opt_type(atom()) -> fun((any()) -> any()) | [atom()]. opt_type(ext_api_http_pool_size) -> fun (X) when is_integer(X), X > 0 -> X end; opt_type(ext_api_url) -> |