25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Fix jid:from_string/1 function specification

This commit is contained in:
Holger Weiss 2016-05-15 16:19:13 +02:00
parent 64bb371285
commit ff199a323d

View File

@ -87,7 +87,7 @@ split(#jid{user = U, server = S, resource = R}) ->
split(_) ->
error.
-spec from_string([binary()|string()]) -> jid() | error.
-spec from_string(binary() | string()) -> jid() | error.
from_string(S) when is_list(S) ->
%% We do not accept list because we want to enforce good practice of
%% using binaries for string. However, we do not let it crash to avoid