diff options
author | Chris Wendt <chrismwendt@gmail.com> | 2022-06-08 03:16:02 -0600 |
---|---|---|
committer | Chris Wendt <chrismwendt@gmail.com> | 2022-06-08 03:16:02 -0600 |
commit | 2ef3a53065a49ba3238203484588f1f72ccf25fd (patch) | |
tree | 2f59b6ef96aee1ec7ffd26c2793dc61ddb1142cb /stmutil | |
parent | update README (diff) | |
download | stm-2ef3a53065a49ba3238203484588f1f72ccf25fd.tar.gz stm-2ef3a53065a49ba3238203484588f1f72ccf25fd.tar.xz |
remove unnecessary type parameters
Diffstat (limited to 'stmutil')
-rw-r--r-- | stmutil/context.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmutil/context.go b/stmutil/context.go index 9d23e12..6f8ba9b 100644 --- a/stmutil/context.go +++ b/stmutil/context.go @@ -26,7 +26,7 @@ func ContextDoneVar(ctx context.Context) (*stm.Var[bool], func()) { v := stm.NewBuiltinEqVar(true) return v, func() {} } - v := stm.NewVar[bool](false) + v := stm.NewVar(false) go func() { <-ctx.Done() stm.AtomicSet(v, true) |