Wrap maybe function in quotes, so it is treated as an atom
This commit is contained in:
parent
58b36b8088
commit
04800b9cdf
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
-export_type([heartbeaters/0]).
|
||||
|
||||
-type heartbeaters() :: {rabbit_types:maybe(pid()), rabbit_types:maybe(pid())}.
|
||||
-type heartbeaters() :: {rabbit_types:'maybe'(pid()), rabbit_types:'maybe'(pid())}.
|
||||
|
||||
-type heartbeat_callback() :: fun (() -> any()).
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
-export_type([
|
||||
%% deprecated
|
||||
maybe/1,
|
||||
'maybe'/1,
|
||||
option/1,
|
||||
info/0, infos/0, info_key/0, info_keys/0,
|
||||
message/0, msg_id/0, basic_message/0,
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
|
||||
-type(option(T) :: T | 'none' | 'undefined').
|
||||
%% Deprecated, 'maybe' is a keyword in modern Erlang
|
||||
-type(maybe(T) :: T | 'none').
|
||||
-type('maybe'(T) :: T | 'none').
|
||||
-type(timestamp() :: {non_neg_integer(), non_neg_integer(), non_neg_integer()}).
|
||||
|
||||
-type(vhost() :: binary()).
|
||||
|
|
|
|||
Loading…
Reference in New Issue