fix example in documentation to unquote in quasi quote

This commit is contained in:
Kai Lüke 2017-03-09 15:02:23 +01:00
parent 5f00921dea
commit 80f0e4af14

View File

@ -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