Wrap maybe function in quotes, so it is treated as an atom

This commit is contained in:
Roberto Aloi 2024-05-16 13:22:24 +02:00
parent 58b36b8088
commit 04800b9cdf
2 changed files with 3 additions and 3 deletions

View File

@ -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()).

View File

@ -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()).