#72: document `defnp`'s lack of multi-arity support (@ribcakes)

This commit is contained in:
Peter Taoussanis 2014-07-03 12:21:04 +07:00
parent f75d707208
commit f430ed9f81
1 changed files with 2 additions and 1 deletions

View File

@ -85,7 +85,8 @@
(if-not (< (rand) ~probability) (do ~@body)
(profile ~level ~id ~@body))))
(defmacro defnp "Like `defn` but wraps body in `p` macro."
(defmacro defnp
"Like `defn` (single arity only) but wraps body in `p` macro."
{:arglists '([name ?doc-string ?attr-map [params] ?prepost-map body])}
[name & sigs]
(let [[name [params & sigs]] (encore/name-with-attrs name sigs)