Skip to content

Commit a4df56d

Browse files
authored
Fix doc of macros section of meta-programming (#14476)
1 parent af29eef commit a4df56d

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
@@ -95,7 +95,7 @@ In fact, `if/2` in Elixir is implemented as a macro:
9595
```elixir
9696
defmacro if(clause, do: expression) do
9797
quote do
98-
case clause do
98+
case unquote(clause) do
9999
x when x in [false, nil] -> nil
100100
_ -> unquote(expression)
101101
end

0 commit comments

Comments
 (0)