[erlang-bugs] kernel-2.13.3/pg2:get_closest_pid/1 spec is incorrect (R13B02)

Kostis Sagonas <>
Wed Nov 4 00:08:38 CET 2009


Paul Guyot wrote:
> Hello,
> 
> In R13B02, pg2:get_closest_pid/1 has an incorrect spec. It says: 
> (pg2.erl, line 144)
> 
> -spec get_closest_pid(term()) -> pid() | {'no_process', term()}
>                                        | {'no_such_group', term()}.
> 
> It should be:
> 
> -spec get_closest_pid(term()) -> pid() | {'error', {'no_process', term()}}
>                                        | {'error', {'no_such_group', 
> term()}}.

Thanks for reporting this one. It will be fixed in the upcoming release.

Kostis


More information about the erlang-bugs mailing list