Commits

kumarshantanu  committed 164ae94

fix docstring for `try-times`

  • Participants
  • Parent commits dd5e48d

Comments (0)

Files changed (1)

File src/main/clj/org/bituf/clj_miscutil.clj

 
 
 (defmacro try-times
-  "Execute body of code; on exception retry maximum n times. Throw last
+  "Execute body of code; on exception retry maximum n-1 times. Throw last
   encountered exception if none of the tries were successful."
   [n & body] {:pre [(posnum? n)]}
   `(let [c# (repeat-exec (dec ~n) #(maybe ~@body))