Skip to content

Commit 900f9d4

Browse files
authored
Merge pull request #222 from figurantpp/finally-fix-doc
Update finally docstring as per #101
2 parents 41fdee1 + 19d1a60 commit 900f9d4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/manifold/deferred.clj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,9 @@
10191019

10201020
(defn finally
10211021
"An equivalent of the finally clause, which takes a no-arg side-effecting function that executes
1022-
no matter what the result."
1022+
no matter what the result.
1023+
1024+
Returns x unless a Throwable is thrown in f, in which case it returns an error-deferred."
10231025
[x f]
10241026
(if-let [d (->deferred x nil)]
10251027
(finally' d f)

0 commit comments

Comments
 (0)