25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Improve the type spec

This commit is contained in:
Evgeniy Khramtsov 2013-06-24 13:15:07 +10:00
parent 521bae7fa0
commit 7b07c2a9b2

View File

@ -55,7 +55,7 @@
-type matchspec_atom() :: '_' | '$1' | '$2' | '$3'. -type matchspec_atom() :: '_' | '$1' | '$2' | '$3'.
-record(carboncopy,{us :: {binary(), binary()} | matchspec_atom(), -record(carboncopy,{us :: {binary(), binary()} | matchspec_atom(),
resource :: binary() | matchspec_atom(), resource :: binary() | matchspec_atom(),
version :: binary() }). version :: binary() | matchspec_atom()}).
is_carbon_copy(Packet) -> is_carbon_copy(Packet) ->
case xml:get_subtag(Packet, <<"sent">>) of case xml:get_subtag(Packet, <<"sent">>) of