Merge pull request #1250 from pothos/master

fix example in documentation to unquote in quasi quote
This commit is contained in:
Kodi Arfer 2017-03-09 07:25:45 -08:00 committed by GitHub
commit 504e56361b
2 changed files with 2 additions and 2 deletions

View File

@ -76,4 +76,4 @@
* Philip Xu <pyx@xrefactor.com>
* Charles de Lacombe <ealhad@mail.com>
* John Patterson <john@johnppatterson.com>
* Kai Lüke <kailueke@riseup.net>

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