Skip to content

Commit 290ad65

Browse files
authored
docs: add arity to macro reference of def/2 and defmodule/2 (#13882)
1 parent c60b477 commit 290ad65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/pages/getting-started/modules-and-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ iex> String.length("hello")
77
5
88
```
99

10-
In order to create our own modules in Elixir, we use the `defmodule` macro. The first letter of the module must be in uppercase. We use the `def` macro to define functions in that module. The first letter of every function must be in lowercase (or underscore):
10+
In order to create our own modules in Elixir, we use the [`defmodule`](`defmodule/2`) macro. The first letter of the module must be in uppercase. We use the [`def`](`def/2`) macro to define functions in that module. The first letter of every function must be in lowercase (or underscore):
1111

1212
```elixir
1313
iex> defmodule Math do

0 commit comments

Comments
 (0)