Skip to content

Commit d14eea2

Browse files
authored
Merge pull request #66 from esl/to_iolist_types
Accept more xml types in to_iolist
2 parents 7921d7e + a08bf05 commit d14eea2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/exml.erl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,22 +80,22 @@ xml_sort(Elements) when is_list(Elements) ->
8080
lists:sort([ xml_sort(E) || E <- Elements ]).
8181

8282
%% @equiv erlang:binary_to_list(to_binary(Element))
83-
-spec to_list(element() | [exml_stream:element()]) -> string().
83+
-spec to_list(exml_stream:element() | [exml_stream:element()]) -> string().
8484
to_list(Element) ->
8585
binary_to_list(to_binary(Element)).
8686

8787
%% @equiv erlang:iolist_to_binary(to_iolist(Element, not_pretty))
88-
-spec to_binary(element() | [exml_stream:element()]) -> binary().
88+
-spec to_binary(exml_stream:element() | [exml_stream:element()]) -> binary().
8989
to_binary(Element) ->
9090
iolist_to_binary(to_iolist(Element, not_pretty)).
9191

9292
%% @equiv to_iolist(Element, not_pretty)
93-
-spec to_iolist(element() | [exml_stream:element()]) -> iodata().
93+
-spec to_iolist(exml_stream:element() | [exml_stream:element()]) -> iodata().
9494
to_iolist(Element) ->
9595
to_iolist(Element, not_pretty).
9696

9797
%% @equiv to_iolist(Element, pretty)
98-
-spec to_pretty_iolist(element() | [exml_stream:element()]) -> iodata().
98+
-spec to_pretty_iolist(exml_stream:element() | [exml_stream:element()]) -> iodata().
9999
to_pretty_iolist(Element) ->
100100
to_iolist(Element, pretty).
101101

0 commit comments

Comments
 (0)