Skip to content
Permalink
Browse files
Fix type spec of recon:port_types/0
  • Loading branch information
Luca Favatella committed May 22, 2014
1 parent 7e11ab6 commit 01e13db4655882ebbb16f5aae113f0b693687802
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
@@ -526,7 +526,7 @@ files() -> recon_lib:port_list(name, "efile").

%% @doc Shows a list of all different ports on the node with their respective
%% types.
-spec port_types() -> [{pos_integer(),Type::string()}].
-spec port_types() -> [{Type::string(), Count::pos_integer()}].
port_types() ->
lists:usort(
%% sorts by biggest count, smallest type
@@ -48,7 +48,7 @@ sample(Delay, Fun) ->
%% @doc Takes a list of terms, and counts how often each of
%% them appears in the list. The list returned is in no
%% particular order.
-spec count([term()]) -> [{Count::integer(), term()}].
-spec count([term()]) -> [{term(), Count::integer()}].
count(Terms) ->
Dict = lists:foldl(
fun(Val, Acc) -> dict:update_counter(Val, 1, Acc) end,

0 comments on commit 01e13db

Please sign in to comment.