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.
Describe the issue On
Multiple Function Clauses
, there is this explanation:It is imprecise because above instead of defining
MultipleFunctionClauses.find_arity
with arities1
,2
and3
, the function that is defined isMultipleFunctionClauses.my_function
with arities0
,1
and2
.So, the correct description shlud be:
Expected behavior A concise description avoids confusion, especially for those who intend to learn Elixir.
Screenshots![Screenshot 2024-07-08 at 19 26 06](https://github.com/DockYard-Academy/curriculum/assets/10944917/2e01af44-4f1a-4843-ab9d-20079d4f8462)