diff options
author | Pierre Fenoll <[email protected]> | 2013-12-13 15:09:38 +0000 |
---|---|---|
committer | Henrik Nord <[email protected]> | 2014-02-14 11:14:13 +0100 |
commit | f2169928a77d5a6b2e3e069b8cf9b8f5300ed543 (patch) | |
tree | 0bae14bbc80d5f51de9949c76b55e9c8ab6dcd26 /lib/ssl/src/tls_record.erl | |
parent | d10a115ab1e66938531b87bef20f886013e7b96b (diff) | |
download | otp-f2169928a77d5a6b2e3e069b8cf9b8f5300ed543.tar.gz otp-f2169928a77d5a6b2e3e069b8cf9b8f5300ed543.tar.bz2 otp-f2169928a77d5a6b2e3e069b8cf9b8f5300ed543.zip |
Fix edoc usage errors
Errors discovered using `erldocs`:
Superfluous @hidden tag would exit edoc application;
'Multiple @spec tag': appended a @clear tag after macro condition;
'@spec arity does not match': added missing argument.
Diffstat (limited to 'lib/ssl/src/tls_record.erl')
-rw-r--r-- | lib/ssl/src/tls_record.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssl/src/tls_record.erl b/lib/ssl/src/tls_record.erl index 88107557a0..8c0c4f3c91 100644 --- a/lib/ssl/src/tls_record.erl +++ b/lib/ssl/src/tls_record.erl @@ -262,18 +262,18 @@ supported_protocol_versions([_|_] = Vsns) -> Vsns. %%-------------------------------------------------------------------- --spec is_acceptable_version(tls_version()) -> boolean(). --spec is_acceptable_version(tls_version(), Supported :: [tls_version()]) -> boolean(). %% %% Description: ssl version 2 is not acceptable security risks are too big. %% %%-------------------------------------------------------------------- +-spec is_acceptable_version(tls_version()) -> boolean(). is_acceptable_version({N,_}) when N >= ?LOWEST_MAJOR_SUPPORTED_VERSION -> true; is_acceptable_version(_) -> false. +-spec is_acceptable_version(tls_version(), Supported :: [tls_version()]) -> boolean(). is_acceptable_version({N,_} = Version, Versions) when N >= ?LOWEST_MAJOR_SUPPORTED_VERSION -> lists:member(Version, Versions); |