From cb6cf9ef3c67a46477c7ab7a7fe3fb032bbe0840 Mon Sep 17 00:00:00 2001 From: lukechampine Date: Tue, 29 Mar 2016 23:49:50 -0400 Subject: rename Check -> Assert --- stm.go | 4 ++-- 1 file 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() } -- cgit v1.2.3