aboutsummaryrefslogtreecommitdiff
path: root/stm.go
diff options
context:
space:
mode:
Diffstat (limited to 'stm.go')
-rw-r--r--stm.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/stm.go b/stm.go
index e3c965e..973734c 100644
--- a/stm.go
+++ b/stm.go
@@ -149,9 +149,9 @@ func (tx *Tx) Retry() {
panic(Retry)
}
-// Check is a helper function that retries a transaction if the condition is
+// Assert is a helper function that retries a transaction if the condition is
// not satisfied.
-func (tx *Tx) Check(p bool) {
+func (tx *Tx) Assert(p bool) {
if !p {
tx.Retry()
}