aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tx.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/tx.go b/tx.go
index f63de76..127480e 100644
--- a/tx.go
+++ b/tx.go
@@ -6,9 +6,7 @@ type Tx struct {
writes map[*Var]interface{}
}
-// verify checks that none of the logged values have changed since the
-// transaction began.
-// TODO: is pointer equality good enough? probably not, without immutable data
+// Check that none of the logged values have changed since the transaction began.
func (tx *Tx) verify() bool {
for v, version := range tx.reads {
v.mu.Lock()