Skip to content

Commit 94afa95

Browse files
committed
doc
1 parent 9f644d1 commit 94afa95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ container.WithAcquire(func(cache *MyCache) {
9898

9999
```go
100100
func update(container *poolswap.Container[MyCache, *MyCache]) {
101-
newCache := pool.Get()
101+
newCache := container.GetNew()
102102
newCache.data["key"] = "new_value"
103103

104104
container.Update(newCache)

0 commit comments

Comments
 (0)