diff --git a/README.md b/README.md index fe88318..e7da505 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ import ( func main() { b := pbuf.NewBytes(1024) // Allocate Bytes from pool. rand.Read(b.Bytes()) // Do sth. - b.Destroy() // Optional, can be auto-destroyed on GC. + b.KeepAlive() // Mark as reachable. + // After that, b will be auto-reused on GC. } ```