Browse Source

ft:bug fix

master
lijie 2 years ago
parent
commit
2f59049714
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      src/eFmt.erl

+ 5
- 5
src/eFmt.erl View File

@ -158,15 +158,15 @@ write(Term, Depth, IsPretty) ->
end.
splitPart(Term)when is_map(Term) ->
<<",...}">>;
<<"...}">>;
splitPart(Term)when is_tuple(Term) ->
<<",...}">>;
<<"...}">>;
splitPart(Term)when is_list(Term) ->
<<",...]">>;
<<"...]">>;
splitPart(Term) when is_binary(Term) ->
<<",...>>">>;
<<"...>>">>;
splitPart(_Term) ->
<<",...">>.
<<"...">>.
-spec write(Term :: term(), Depth :: depth(), Encoding :: encoding(), CharsLimit :: charsLimit()) -> chars().
write(Term, Depth, Encoding, CharsLimit) ->

Loading…
Cancel
Save