Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lookup_local_name doc #124

Open
benbro opened this issue Oct 27, 2016 · 1 comment
Open

lookup_local_name doc #124

benbro opened this issue Oct 27, 2016 · 1 comment

Comments

@benbro
Copy link
Contributor

benbro commented Oct 27, 2016

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
Copy link
Owner

uwiger commented Oct 27, 2016

Indeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants