aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 8073b9d..ba770d9 100644
--- a/README.md
+++ b/README.md
@@ -89,7 +89,7 @@ type foo struct {
}
f := foo{i: stm.NewVar[int](2)}
stm.Atomically(func(tx *stm.Tx) {
- i := f.i.Get(tx).(int)
+ i := f.i.Get(tx)
i = 7
f.i.Set(tx, i)
})