Merge pull request #376 from troglotit/master

Fix non-valid docstring for `with-let`
This commit is contained in:
Juho Teperi 2018-05-21 20:11:05 +03:00 committed by GitHub
commit d7529a8e60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1,9 +1,10 @@
(ns reagent.core (ns reagent.core
(:require [reagent.ratom :as ra])) (:require [reagent.ratom :as ra]))
(defmacro with-let [bindings & body] (defmacro with-let
"Bind variables as with let, except that when used in a component "Bind variables as with let, except that when used in a component
the bindings are only evaluated once. Also takes an optional finally the bindings are only evaluated once. Also takes an optional finally
clause at the end, that is executed when the component is clause at the end, that is executed when the component is
destroyed." destroyed."
[bindings & body]
`(ra/with-let ~bindings ~@body)) `(ra/with-let ~bindings ~@body))