uwiger / gproc

Extended process registry for Erlang
Apache License 2.0
1.07k stars 232 forks source link

lookup_local_name doc #124

Open benbro opened 7 years ago

benbro commented 7 years ago

The lookup_local_name doc says "Fails if there is no such name". "Fail" seems like it raises an exception but it actually return undefined (which is good). Shouldn't it say something like "Return undefined if there is no such name"?

The spec should return "pid() | undefined" as well? https://github.com/uwiger/gproc/blob/master/src/gproc.erl#L279

uwiger commented 7 years ago

Indeed.