aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/jid.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jid.erl b/src/jid.erl
index 7bdd652ae..0c3ac77c0 100644
--- a/src/jid.erl
+++ b/src/jid.erl
@@ -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