summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Hickey <richhickey@gmail.com>2008-07-17 10:30:56 +0000
committerRich Hickey <richhickey@gmail.com>2008-07-17 10:30:56 +0000
commit2fdc872da1d177cbf63765a638112e0e4f6458c6 (patch)
treef198929062a6c3f1d85db26e024015f29b840233 /src
parente35364ccc5ef1544383698fb56a514872a8c1ed8 (diff)
added doc for return value of alter and commute
Diffstat (limited to 'src')
-rw-r--r--src/boot.clj6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/boot.clj b/src/boot.clj
index 15fe376f..89cda99d 100644
--- a/src/boot.clj
+++ b/src/boot.clj
@@ -1016,6 +1016,8 @@
(apply fun in-transaction-value-of-ref args)
+ and returns the in-transaction-value of ref.
+
At the commit point of the transaction, sets the value of ref to be:
(apply fun most-recently-committed-value-of-ref args)
@@ -1031,7 +1033,9 @@
"Must be called in a transaction. Sets the in-transaction-value of
ref to:
- (apply fun in-transaction-value-of-ref args)"
+ (apply fun in-transaction-value-of-ref args)
+
+ and returns the in-transaction-value of ref."
[#^clojure.lang.Ref ref fun & args]
(. ref (alter fun args)))