diff options
author | Johannes Weißl <[email protected]> | 2014-01-27 00:43:00 +0100 |
---|---|---|
committer | Johannes Weißl <[email protected]> | 2014-01-27 00:43:00 +0100 |
commit | b246e47d53d4b738fe47df1d7bf71138a8501e02 (patch) | |
tree | d1deea2f571c23f21f4a5e677d9d22a224bbeacf /lib/ssh/doc | |
parent | 23790daf1a2d384b0fc11c655fa825151d9fa420 (diff) | |
download | otp-b246e47d53d4b738fe47df1d7bf71138a8501e02.tar.gz otp-b246e47d53d4b738fe47df1d7bf71138a8501e02.tar.bz2 otp-b246e47d53d4b738fe47df1d7bf71138a8501e02.zip |
ssh: Fix dialyzer type specs and documentation
Similar to d9ebfb8. The wrong specs were leading to dialyzer warnings
like this in our application since R16B03:
The pattern 'ok' can never match the type {'error',_}.
The pattern {'error', {'already_started', 'ssh'}} can never match the type 'ok'.
The pattern {'error', _} can never match the type {'open_error',_,string(),string()}.
Diffstat (limited to 'lib/ssh/doc')
-rw-r--r-- | lib/ssh/doc/src/ssh.xml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ssh/doc/src/ssh.xml b/lib/ssh/doc/src/ssh.xml index c1a51d57fc..3a16eb29fa 100644 --- a/lib/ssh/doc/src/ssh.xml +++ b/lib/ssh/doc/src/ssh.xml @@ -365,8 +365,11 @@ </func> <func> - <name>stop() -> ok </name> + <name>stop() -> ok | {error, Reason}</name> <fsummary>Stops the SSH application.</fsummary> + <type> + <v>Reason = term()</v> + </type> <desc> <p>Stops the SSH application. See also <seealso marker="kernel:application">application(3)</seealso></p> |