Skip to content

Commit

Permalink
[nop] Misc housekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaoussanis committed Jul 31, 2023
1 parent b7bdbc2 commit e453e3a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/taoensso/truss.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
trapping errors. If any pred test fails, throws a detailed assertion error.
Otherwise returns input val/vals for convenient inline-use/binding.
Respects *assert* value so tests can be elided from production for zero
Respects `*assert*` value so tests can be elided from production for zero
runtime costs.
Provides a small, simple, flexible feature subset to alternative tools like
Expand Down Expand Up @@ -64,8 +64,8 @@

#?(:clj
(defmacro have!
"Like `have` but ignores *assert* value (so can never be elided). Useful
for important conditions in production (e.g. security checks)."
"Like `have` but ignores `*assert*` value (so can never be elided).
Useful for important conditions in production (e.g. security checks)."
{:arglists '([x] [pred (:in) x] [pred (:in) x & more-xs])}
[& args]
(let [[&form args] (clj-865-workaround &form args)
Expand All @@ -79,7 +79,7 @@
when the return vals aren't necessary.
**WARNING**: Do NOT use in :pre/:post conds since those are ALWAYS subject
to *assert*, directly contradicting the intention of the bang (`!`) here."
to `*assert*`, directly contradicting the intention of the bang (`!`) here."
{:arglists '([x] [pred (:in) x] [pred (:in) x & more-xs])}
[& args]
(let [[&form args] (clj-865-workaround &form args)
Expand Down

0 comments on commit e453e3a

Please sign in to comment.