diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-05-08 12:59:28 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-05-08 12:59:28 +0300 |
commit | 01a2c9fe1202f88f20a5acbc729b627ce0ac3c0a (patch) | |
tree | 4aba0e94650d1311ab5b2da0e74563b1bd02a876 /src/cyrsasl_digest.erl | |
parent | LOG_PATH macro should be of string type (diff) |
Add type specs for Module:opt_type/1
Diffstat (limited to 'src/cyrsasl_digest.erl')
-rw-r--r-- | src/cyrsasl_digest.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cyrsasl_digest.erl b/src/cyrsasl_digest.erl index 9d23271d..5bce53a0 100644 --- a/src/cyrsasl_digest.erl +++ b/src/cyrsasl_digest.erl @@ -260,6 +260,8 @@ response(KeyVals, User, Passwd, Nonce, AuthzId, ":", (hex((erlang:md5(A2))))/binary>>, hex((erlang:md5(T))). +-spec opt_type(fqdn) -> fun((binary() | [binary()]) -> [binary()]); + (atom()) -> [atom()]. opt_type(fqdn) -> fun(FQDN) when is_binary(FQDN) -> [FQDN]; |