Skip to content

Commit

Permalink
nicer formatting of sets
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekgorny committed Mar 6, 2019
1 parent 75d70c7 commit 4e7c387
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/recon_rec.erl
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ limit(Name, Arity, Limit) ->

%% @private if a tuple is a known record, formats is as "#recname{field=value}", otherwise returns
%% just a printout of a tuple.
format_tuple(Tuple) when element(1, Tuple) == set ->
["set:", recon_trace:format_trace_output(true, sets:to_list(Tuple))];
format_tuple(Tuple) ->
ensure_table_exists(),
First = element(1, Tuple),
Expand Down

0 comments on commit 4e7c387

Please sign in to comment.