Skip to content

Commit ed1ddfd

Browse files
committed
Add parens to private macro example, closes #13411
1 parent d17df05 commit ed1ddfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/pages/meta-programming/macros.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ It is important that a macro is defined before its usage. Failing to define a ma
223223

224224
```elixir
225225
iex> defmodule Sample do
226-
...> def four, do: two + two
226+
...> def four, do: two() + two()
227227
...> defmacrop two, do: 2
228228
...> end
229229
** (CompileError) iex:2: function two/0 undefined

0 commit comments

Comments
 (0)