fix example in documentation to unquote in quasi quote
This commit is contained in:
parent
5f00921dea
commit
80f0e4af14
@ -730,7 +730,7 @@ For example,
|
||||
.. code-block:: clj
|
||||
|
||||
=> (defn expensive-get-number [] (print "spam") 14)
|
||||
=> (defmacro triple-1 [n] `(+ n n n))
|
||||
=> (defmacro triple-1 [n] `(+ ~n ~n ~n))
|
||||
=> (triple-1 (expensive-get-number)) ; evals n three times
|
||||
spam
|
||||
spam
|
||||
|
Loading…
Reference in New Issue
Block a user