From 9373dd6cc27907b011fbd690c77adeb77263793d Mon Sep 17 00:00:00 2001 From: qydysky <32743305+qydysky@users.noreply.github.com> Date: Wed, 18 Jan 2023 15:53:41 +0800 Subject: [PATCH] fix --- pool/Pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pool/Pool.go b/pool/Pool.go index c025df6..f6135e2 100644 --- a/pool/Pool.go +++ b/pool/Pool.go @@ -29,7 +29,7 @@ func (t *buf[T]) Trim() { for i := 0; i < len(t.buf); i++ { if !t.validF(t.buf[i]) { t.buf[i] = nil - t.buf = append(t.buf[:i], t.buf[i:]...) + t.buf = append(t.buf[:i], t.buf[i+1:]...) i-- } } -- 2.39.2