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

Modules -> Multiple Function Clauses #1062

Open
rodrigosantiag opened this issue Jul 8, 2024 · 0 comments
Open

Modules -> Multiple Function Clauses #1062

rodrigosantiag opened this issue Jul 8, 2024 · 0 comments

Comments

@rodrigosantiag
Copy link
Contributor

Describe the issue
On Multiple Function Clauses, there is this explanation:

So above we define MultipleFunctionClauses.find_arity/1, MultipleFunctionClauses.find_arity/2, and MultipleFunctionClauses.find_arity/3 functions.

It is imprecise because above instead of defining MultipleFunctionClauses.find_arity with arities 1, 2 and 3, the function that is defined is MultipleFunctionClauses.my_function with arities 0, 1 and 2.

So, the correct description shlud be:

So above we define MultipleFunctionClauses.my_function/0, MultipleFunctionClauses.my_function/1, and MultipleFunctionClauses.my_function/2 functions.

Expected behavior
A concise description avoids confusion, especially for those who intend to learn Elixir.

Screenshots
Screenshot 2024-07-08 at 19 26 06

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

1 participant