Skip to content

Commit 0c8c6f0

Browse files
author
José Valim
committed
Clarify quote docs
1 parent 7bdbefb commit 0c8c6f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/elixir/lib/kernel/special_forms.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,9 +1064,9 @@ defmodule Kernel.SpecialForms do
10641064
we are passing the representation of the variable `kv`, our
10651065
code fails.
10661066
1067-
This is actually a common pitfall when developing macros. In
1068-
practice, we want to avoid doing work at compilation time as
1069-
much as possible. That said, let's attempt to improve our macro:
1067+
This is actually a common pitfall when developing macros. We are
1068+
assuming a particular shape in the macro. We can work around it
1069+
by unquoting the variable inside the quoted expression:
10701070
10711071
defmacro defkv(kv) do
10721072
quote do

0 commit comments

Comments
 (0)