Skip to content

Commit

Permalink
Merge pull request #1063 from rodrigosantiag/issue-1062
Browse files Browse the repository at this point in the history
Update Modules -> Multiple Function Clauses arity explanation
  • Loading branch information
BrooklinJazz authored Jul 15, 2024
2 parents a834a26 + 71801a9 commit 904272b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reading/modules.livemd
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ MultipleFunctionClauses.my_function(1)

Each function clause has a different **arity**. We can treat each function with a different arity as a completely separate function. In Elixir, we often refer to functions by their name and arity.

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

<!-- livebook:{"break_markdown":true} -->

Expand Down

0 comments on commit 904272b

Please sign in to comment.