diff options
| -rw-r--r-- | include/gm_specs.hrl | 2 | ||||
| -rw-r--r-- | src/gm.erl | 15 |
2 files changed, 8 insertions, 9 deletions
diff --git a/include/gm_specs.hrl b/include/gm_specs.hrl index 2109d15d22..ee29706e98 100644 --- a/include/gm_specs.hrl +++ b/include/gm_specs.hrl @@ -17,7 +17,7 @@ -ifdef(use_specs). -type(callback_result() :: 'ok' | {'stop', any()} | {'become', atom(), args()}). --type(args() :: [any()]). +-type(args() :: any()). -type(members() :: [pid()]). -spec(joined/2 :: (args(), members()) -> callback_result()). diff --git a/src/gm.erl b/src/gm.erl index 283b243171..b3fb7eca53 100644 --- a/src/gm.erl +++ b/src/gm.erl @@ -53,13 +53,12 @@ %% to create the tables required. %% %% start_link/3 -%% Provide the group name, the callback module name, and a list of any -%% arguments you wish to be passed into the callback module's -%% functions. The joined/1 will be called when we have joined the -%% group, and the list of arguments will have appended to it a list of -%% the current members of the group. See the comments in -%% behaviour_info/1 below for further details of the callback -%% functions. +%% Provide the group name, the callback module name, and any arguments +%% you wish to be passed into the callback module's functions. The +%% joined/1 will be called when we have joined the group, and the list +%% of arguments will have appended to it a list of the current members +%% of the group. See the comments in behaviour_info/1 below for +%% further details of the callback functions. %% %% leave/1 %% Provide the Pid. Removes the Pid from the group. The callback @@ -421,7 +420,7 @@ -type(group_name() :: any()). -spec(create_tables/0 :: () -> 'ok'). --spec(start_link/3 :: (group_name(), atom(), [any()]) -> +-spec(start_link/3 :: (group_name(), atom(), any()) -> {'ok', pid()} | {'error', any()}). -spec(leave/1 :: (pid()) -> 'ok'). -spec(broadcast/2 :: (pid(), any()) -> 'ok'). |
