Skip to content

Commit

Permalink
ssh: fix connection_info result typespec
Browse files Browse the repository at this point in the history
  • Loading branch information
u3s committed Dec 9, 2024
1 parent 0418c10 commit 98ce7f6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/ssh/src/ssh.erl
Original file line number Diff line number Diff line change
Expand Up @@ -287,16 +287,18 @@ close(ConnectionRef) ->
| {options, client_options()}
| {algorithms, conn_info_algs()}
| {channels, conn_info_channels()}.

-spec connection_info(ConnectionRef) -> InfoTupleList when

-spec connection_info(ConnectionRef) ->
InfoTupleList | {error, term()} when
ConnectionRef :: connection_ref(),
InfoTupleList :: [InfoTuple],
InfoTuple :: connection_info_tuple().

connection_info(ConnectionRef) ->
connection_info(ConnectionRef) ->
connection_info(ConnectionRef, []).

-spec connection_info(ConnectionRef, ItemList|Item) -> InfoTupleList|InfoTuple when
-spec connection_info(ConnectionRef, ItemList|Item) ->
InfoTupleList | InfoTuple | {error, term()} when
ConnectionRef :: connection_ref(),
ItemList :: [Item],
Item :: client_version | server_version | user | peer | sockname | options | algorithms | sockname,
Expand Down

0 comments on commit 98ce7f6

Please sign in to comment.