From 2c97cceb0e9d8af2624dd44832b2bc2e4ca2b16c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Tue, 25 Feb 2025 21:07:53 +0900 Subject: [PATCH] doc: edit README --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. } ```